Quentin LAMBERT

Author's posts

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 …

Continue reading

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 …

Continue reading

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 …

Continue reading

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 …

Continue reading

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 …

Continue reading

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 …

Continue reading

tpm/tpm_i2c_atmel: fix coccinelle warnings

Author: Fengguang Wu <fengguang.wu@intel.com> drivers/char/tpm/tpm_i2c_atmel.c:178:8-9: WARNING: return of 0/1 in function ‘i2c_atmel_req_canceled’ with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Generated by: coccinelle/misc/boolreturn.cocci CC: Jason Gunthorpe CC: Peter Huewe Acked-by: Jason Gunthorpe Signed-off-by: Fengguang Wu Signed-off-by: Peter Huewe — drivers/char/tpm/tpm_i2c_atmel.c | 2 +- 1 file changed, 1 …

Continue reading

staging: crystalhd: return true and false instead of 1 and 0

Author: Valentina Manea <valentina.manea.m@gmail.com> This fixes coccinelle error regarding functions that return bool and return 1 and 0 instead of true and false. Signed-off-by: Valentina Manea Reviewed-by: Lisa Nguyen Reviewed-by: Josh Triplett Signed-off-by: Greg Kroah-Hartman — drivers/staging/crystalhd/crystalhd_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff –git a/drivers/staging/crystalhd/crystalhd_cmds.c b/drivers/staging/crystalhd/crystalhd_cmds.c index 07a2f24..3972b52 100644 …

Continue reading

staging: rtl8192e: remove unneeded semicolons

Author: Valentina Manea <valentina.manea.m@gmail.com> This fixes coccinelle errors regarding unneeded semicolons. Signed-off-by: Valentina Manea Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 4 ++– 1 file changed, 2 insertions(+), 2 deletions(-)   diff –git a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c index a285841..2cace9a 100644 — a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c @@ -1184,7 +1184,7 @@ void rtl8192_tx_fill_desc(struct net_device *dev, struct tx_desc *pdesc, cb_desc);   if …

Continue reading

staging: rtl8192e: use true and false for bool variables

Author: Valentina Manea <valentina.manea.m@gmail.com> This patch fixes coccinelle errors for bool variables initialized with 1 or 0 instead of true and false. Signed-off-by: Valentina Manea Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 2 +- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 10 +++++—– drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 6 +++— drivers/staging/rtl8192e/rtllib_rx.c | 4 ++– drivers/staging/rtl8192e/rtllib_softmac.c | 6 +++— 5 files changed, 14 insertions(+), 14 …

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.