]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-ds1307.c: change variable type to bool
authorPeter Senna Tschudin <peter.senna@gmail.com>
Tue, 5 Nov 2013 05:57:24 +0000 (16:57 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:57:24 +0000 (16:57 +1100)
commitcf1c7081c567eb09d890d0ad98ed2e9e9ff407fd
treee2ac8d777569ca179890ac2f498927197d3bc03c
parent080051222ef91751207bdf1827e3c794c8ff79a3
drivers/rtc/rtc-ds1307.c: change variable type to bool

The variable want_irq is only assigned the values true and false.
Change its type to bool.

The simplified semantic patch that find this problem is as
follows (http://coccinelle.lip6.fr/):

@exists@
type T;
identifier b;
@@
- T
+ bool
  b = ...;
  ... when any
  b = \(true\|false\)

Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-ds1307.c