Author: Teodora Baluta <teobaluta@gmail.com> This patch fixes the following type of coccinelle detected warnings for driver vt6655: WARNING: Comparison to bool Signed-off-by: Teodora Baluta Signed-off-by: Greg Kroah-Hartman — drivers/staging/vt6655/baseband.c | 4 +- drivers/staging/vt6655/card.c | 8 +– drivers/staging/vt6655/channel.c | 16 ++— drivers/staging/vt6655/datarate.c | 8 +– drivers/staging/vt6655/device_main.c | 60 +++++++++———- drivers/staging/vt6655/dpc.c | 34 +++++—— drivers/staging/vt6655/hostap.c | 12 …
Catégorie : Linux
Nov 08 2013
staging: rtl8188eu: remove unneeded semicolon
Author: Teodora Baluta <teobaluta@gmail.com> This patch fixes the following issues detected by coccinelle: drivers/staging/rtl8188eu/core/rtw_xmit.c:688:75-76: Unneeded semicolon drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c:2307:64-65: Unneeded semicolon drivers/staging/rtl8188eu/hal/rtl8188e_rxdesc.c:89:66-67: Unneeded semicolon Signed-off-by: Teodora Baluta Reviewed-by: Peter P Waskiewicz Jr Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8188eu/core/rtw_xmit.c | 2 +- drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c | 2 +- drivers/staging/rtl8188eu/hal/rtl8188e_rxdesc.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff …
Nov 08 2013
staging: rtl8188eu: correct code alignment
Author: Teodora Baluta <teobaluta@gmail.com> This patch fixes incorrect code alignment due to mixed indenting with spaces and tabs. This patch was detected using coccinelle and silences the following warnings: drivers/staging/rtl8188eu/core/rtw_io.c:297:2-29: code aligned with following code on line 299 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:4420:2-29: code aligned with following code on line 4422 drivers/staging/rtl8188eu/os_dep/osdep_service.c:54:2-17: code aligned with following code on line …
Nov 06 2013
net:drivers/net: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO
Author: Duan Jiong <duanj.fnst@cn.fujitsu.com> This patch fixes coccinelle error regarding usage of IS_ERR and PTR_ERR instead of PTR_ERR_OR_ZERO. Signed-off-by: Duan Jiong Signed-off-by: David S. Miller — drivers/net/ethernet/i825xx/82596.c | 4 +— 1 file changed, 1 insertion(+), 3 deletions(-) diff –git a/drivers/net/ethernet/i825xx/82596.c b/drivers/net/ethernet/i825xx/82596.c index a15877a..7ce6379 100644 — a/drivers/net/ethernet/i825xx/82596.c +++ b/drivers/net/ethernet/i825xx/82596.c @@ -1527,9 +1527,7 @@ int __init …
Nov 06 2013
smsc: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO
Author: Duan Jiong <duanj.fnst@cn.fujitsu.com> This patch fixes coccinelle error regarding usage of IS_ERR and PTR_ERR instead of PTR_ERR_OR_ZERO. Signed-off-by: Duan Jiong Signed-off-by: David S. Miller — drivers/net/ethernet/smsc/smc9194.c | 4 +— 1 file changed, 1 insertion(+), 3 deletions(-) diff –git a/drivers/net/ethernet/smsc/smc9194.c b/drivers/net/ethernet/smsc/smc9194.c index 51aa9cf..4092fed 100644 — a/drivers/net/ethernet/smsc/smc9194.c +++ b/drivers/net/ethernet/smsc/smc9194.c @@ -1569,9 +1569,7 @@ int __init …
Nov 06 2013
block: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO
Author: Duan Jiong <duanj.fnst@cn.fujitsu.com> This patch fixes coccinelle error regarding usage of IS_ERR and PTR_ERR instead of PTR_ERR_OR_ZERO. Signed-off-by: Duan Jiong Signed-off-by: Jens Axboe — block/ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff –git a/block/ioctl.c b/block/ioctl.c index a31d91d9b..7d5c3b2 100644 — a/block/ioctl.c +++ b/block/ioctl.c @@ -64,7 +64,7 @@ static int blkpg_ioctl(struct …
Nov 06 2013
block: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO
Author: Duan Jiong <duanj.fnst@cn.fujitsu.com> This patch fixes coccinelle error regarding usage of IS_ERR and PTR_ERR instead of PTR_ERR_OR_ZERO. Signed-off-by: Duan Jiong Signed-off-by: Jens Axboe — block/blk-timeout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff –git a/block/blk-timeout.c b/block/blk-timeout.c index 655ba90..abf725c 100644 — a/block/blk-timeout.c +++ b/block/blk-timeout.c @@ -31,7 +31,7 @@ static int __init …
Nov 06 2013
lustre/fld: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO
Author: Duan Jiong <duanj.fnst@cn.fujitsu.com> This patch fixes coccinelle error regarding usage of IS_ERR and PTR_ERR instead of PTR_ERR_OR_ZERO. Signed-off-by: Duan Jiong Signed-off-by: Greg Kroah-Hartman — drivers/staging/lustre/lustre/fld/fld_request.c | 5 +—- 1 file changed, 1 insertion(+), 4 deletions(-) diff –git a/drivers/staging/lustre/lustre/fld/fld_request.c b/drivers/staging/lustre/lustre/fld/fld_request.c index e47fd50..3191a39 100644 — a/drivers/staging/lustre/lustre/fld/fld_request.c +++ b/drivers/staging/lustre/lustre/fld/fld_request.c @@ -504,10 +504,7 @@ static int __init …
Nov 04 2013
staging: comedi: remove unneeded semicolon
Author: Teodora Baluta <teobaluta@gmail.com> There is no need for ‘;’ after ‘}’. This minor fix was suggested by coccinelle. Signed-off-by: Teodora Baluta Reviewed-by: Lisa Nguyen Reviewed-by: Peter P Waskiewicz Jr Signed-off-by: Greg Kroah-Hartman — drivers/staging/comedi/drivers/pcl818.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff –git a/drivers/staging/comedi/drivers/pcl818.c b/drivers/staging/comedi/drivers/pcl818.c index 9e4d7e8..8b5e9c0 100644 — a/drivers/staging/comedi/drivers/pcl818.c …
Nov 04 2013
staging: comedi: change bool assignment to true
Author: Teodora Baluta <teobaluta@gmail.com> This is a minor fix that was suggested by coccinelle. When defined as a bool, a variable should use true/false rather than 1/0. Signed-off-by: Teodora Baluta Reviewed-by: Lisa Nguyen Reviewed-by: Peter P Waskiewicz Jr Signed-off-by: Greg Kroah-Hartman — drivers/staging/comedi/drivers/amplc_dio200_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff …