]> www.infradead.org Git - users/jedix/linux-maple.git/commit
e1000e/ixgb: fix assignment of 0/1 to bool variables.
authorJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 03:18:27 +0000 (11:18 +0800)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 03:18:27 +0000 (11:18 +0800)
commitec82a370e92a8af89300c5e3791d23c56ca666f4
tree5ad519566652438358b1720239cac2cc41c35f8f
parent28d78ff070a2e581b7a6bdc76e8a84b08512b6d7
e1000e/ixgb: fix assignment of 0/1 to bool variables.

DaveM said:
   Please, this kind of stuff rots forever and not using bool properly
   drives me crazy.

Joe Perches <joe@perches.com> gave me the spatch script:

@@
bool b;
@@
-b = 0
+b = false
@@
bool b;
@@
-b = 1
+b = true

I merely installed coccinelle, read the documentation and took credit.

(backported from commit 3db1cd5c05f35fb43eb134df6f321de4e63141f2)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/e1000/e1000_main.c
drivers/net/e1000e/netdev.c
drivers/net/ixgb/ixgb_main.c