[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1365541211.2200.7.camel@LTIRV-MCHAN1.corp.ad.broadcom.com>
Date: Tue, 9 Apr 2013 14:00:11 -0700
From: "Michael Chan" <mchan@...adcom.com>
To: "Joe Perches" <joe@...ches.com>
cc: "Nithin Nayak Sujir" <nsujir@...adcom.com>, davem@...emloft.net,
netdev@...r.kernel.org
Subject: Re: [PATCH net-next] tg3: Use bool not int
On Tue, 2013-04-09 at 13:18 -0700, Joe Perches wrote:
> Using bool can make code more readable.
>
> Convert uses and tests of int to bool.
>
> This also makes a comparison of tg3->link_up
> (itself bool) a bool comparison instead of int.
>
> Reorder stack variable declarations to make
> bool fit declaration holes where appropriate.
>
> $ size drivers/net/ethernet/broadcom/tg3.o*
> text data bss dec hex filename
> 169958 27249 58896 256103 3e867 drivers/net/ethernet/broadcom/tg3.o.new
> 169968 27249 58896 256113 3e871 drivers/net/ethernet/broadcom/tg3.o.old
>
> Signed-off-by: Joe Perches <joe@...ches.com>
Thanks.
Reviewed-by: Michael Chan <mchan@...adcom.com>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists