Re: [PATCH 2/2] branch: clean up repeated strlen

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Wed, 18 Feb 2009, Jeff King wrote:

> Commit 45e2b61 fixed the initialization of a "len" struct
> parameter via strlen. We can use that to clean up what is
> now 3 strlens in a 6-line sequence.
> 
> Signed-off-by: Jeff King <peff@xxxxxxxx>
> ---
> I guess a good compiler could optimize these out, but I think it
> actually reads a little bit nicer.

Definitely.  And thanks for the tests!

Ciao,
Dscho
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux