Author's posts
Oct 02 2013
net: atl1c: Change variable type to bool
Author: Peter Senna Tschudin <peter.senna@gmail.com> The variable ret is only assigned the values true and false. The function atl1c_read_eeprom already returns bool. Change ret 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 …
Sep 30 2013
[media] fc001[23]: Change variable type to bool
Author: Peter Senna Tschudin <peter.senna@gmail.com> The variable vco_select 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 …
Sep 24 2013
crypto: ablk_helper – Replace memcpy with struct assignment
Author: kbuild test robot <fengguang.wu@intel.com> tree: git://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master head: 48e6dc1b2a1ad8186d48968d5018912bdacac744 commit: a62b01cd6cc1feb5e80d64d6937c291473ed82cb [20/24] crypto: create generic version of ablk_helper coccinelle warnings: (new ones prefixed by >>) >> crypto/ablk_helper.c:97:2-8: Replace memcpy with struct assignment >> crypto/ablk_helper.c:78:2-8: Replace memcpy with struct assignment Please consider folding the attached diff 🙂 Signed-off-by: Herbert Xu — crypto/ablk_helper.c | 4 ++– …
Sep 22 2013
Staging: crystalhd: Fix assignment of 0/1 to bool variables
Author: Peter Senna Tschudin <peter.senna@gmail.com> Convert 0 to false and 1 to true when assigning values to bool variables. Inspired by commit 3db1cd5c05f35fb43eb134df6f321de4e63141f2. The simplified semantic patch that find this problem is as follows (http://coccinelle.lip6.fr/): @@ bool b; @@ ( -b = 0 +b = false | -b = 1 +b = true ) Signed-off-by: …
Sep 22 2013
ALSA: Fix assignment of 0/1 to bool variables
Author: Peter Senna Tschudin <peter.senna@gmail.com> Convert 0 to false and 1 to true when assigning values to bool variables. Inspired by commit 3db1cd5c05f35fb43eb134df6f321de4e63141f2. The simplified semantic patch that find this problem is as follows (http://coccinelle.lip6.fr/): @@ bool b; @@ ( -b = 0 +b = false | -b = 1 +b = true ) Signed-off-by: …
Sep 22 2013
OMAPDSS: DISPC: Fix assignment of 0/1 to bool variables
Author: Peter Senna Tschudin <peter.senna@gmail.com> Convert 0 to false and 1 to true when assigning values to bool variables. Inspired by commit 3db1cd5c05f35fb43eb134df6f321de4e63141f2. The simplified semantic patch that find this problem is as follows (http://coccinelle.lip6.fr/): @@ bool b; @@ ( -b = 0 +b = false | -b = 1 +b = true ) Signed-off-by: …
Sep 22 2013
Bluetooth: Fix assignment of 0/1 to bool variables
Author: Peter Senna Tschudin <peter.senna@gmail.com> Convert 0 to false and 1 to true when assigning values to bool variables. Inspired by commit 3db1cd5c05f35fb43eb134df6f321de4e63141f2. The simplified semantic patch that find this problem is as follows (http://coccinelle.lip6.fr/): @@ bool b; @@ ( -b = 0 +b = false | -b = 1 +b = true ) Signed-off-by: …
Sep 22 2013
staging: winbond: Change variable type to bool
Author: Peter Senna Tschudin <peter.senna@gmail.com> The variable Trigger 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 …
Sep 22 2013
staging: vt6656: Change variable type to bool
Author: Peter Senna Tschudin <peter.senna@gmail.com> The variables bMultiBand and bKeyTableFull are 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: …
Sep 22 2013
staging: rtl8187se: Change variable type to bool
Author: Peter Senna Tschudin <peter.senna@gmail.com> The variable ownbit_flag 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 …