Category: Linux

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: …

Continue reading

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 …

Continue reading

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: …

Continue reading

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 …

Continue reading

mwifiex: Change variable type to bool

Author: Peter Senna Tschudin <peter.senna@gmail.com> The variables cancel_scan_cmd, enable_data, hs_activate and valid 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 = …

Continue reading

[media] media: Change variable type to bool

Author: Peter Senna Tschudin <peter.senna@gmail.com> The variable frame_ready 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 …

Continue reading

hv: Change variable type to bool

Author: Peter Senna Tschudin <peter.senna@gmail.com> The variable execute_shutdown 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 …

Continue reading

staging: r8188eu: Add files for new drive: Cocci spatch “noderef”

Author: Thomas Meyer <thomas@m3y3r.de> sizeof when applied to a pointer typed expression gives the size of the pointer. Found by coccinelle spatch “misc/noderef.cocci” Signed-off-by: Thomas Meyer Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8188eu/core/rtw_mp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff –git a/drivers/staging/rtl8188eu/core/rtw_mp.c b/drivers/staging/rtl8188eu/core/rtw_mp.c index c7ff2e4..9832dcb 100644 — a/drivers/staging/rtl8188eu/core/rtw_mp.c +++ b/drivers/staging/rtl8188eu/core/rtw_mp.c @@ -907,7 …

Continue reading

staging: r8188eu: Cocci spatch “noderef”

Author: Thomas Meyer <thomas@m3y3r.de> sizeof when applied to a pointer typed expression gives the size of the pointer. Found by coccinelle spatch “misc/noderef.cocci” Signed-off-by: Thomas Meyer Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff –git a/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c b/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c index cd4100f..95953eb 100644 — a/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c +++ b/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c @@ -6973,7 …

Continue reading

staging: octeon-usb: Cocci spatch “noderef”

Author: Thomas Meyer <thomas@m3y3r.de> sizeof when applied to a pointer typed expression gives the size of the pointer. Found by coccinelle spatch “misc/noderef.cocci” Signed-off-by: Thomas Meyer Signed-off-by: Greg Kroah-Hartman — drivers/staging/octeon-usb/cvmx-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff –git a/drivers/staging/octeon-usb/cvmx-usb.c b/drivers/staging/octeon-usb/cvmx-usb.c index d7b3c82..45dfe94 100644 — a/drivers/staging/octeon-usb/cvmx-usb.c +++ b/drivers/staging/octeon-usb/cvmx-usb.c @@ -604,7 …

Continue reading

BtrLinux
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.