Quentin LAMBERT

Author's posts

IBM-EMAC: Deletion of unnecessary checks before the function call “of_dev_put”

Author: Markus Elfring <elfring@users.sourceforge.net> The of_dev_put() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Signed-off-by: David S. Miller — drivers/net/ethernet/ibm/emac/core.c | 24 ++++++++—————- 1 file changed, 8 insertions(+), 16 deletions(-)   …

Continue reading

mtd: delete unnecessary checks before two function calls

Author: Markus Elfring <elfring@users.sourceforge.net> The functions kfree() and pci_dev_put() test whether their argument is NULL and then return immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Signed-off-by: Brian Norris — drivers/mtd/chips/cfi_cmdset_0001.c | 3 +– drivers/mtd/devices/pmc551.c | 3 +– 2 files changed, …

Continue reading

[media] USB: Deletion of unnecessary checks before three function calls

Author: Markus Elfring <elfring@users.sourceforge.net> GIT_AUTHOR_DATE=1416486805 The functions pvr2_hdw_destroy(), rc_unregister_device() and vfree() perform also input parameter validation. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Signed-off-by: Mauro Carvalho Chehab — drivers/media/usb/au0828/au0828-input.c | 3 +– drivers/media/usb/em28xx/em28xx-input.c | 3 +– drivers/media/usb/pvrusb2/pvrusb2-context.c | 2 +- drivers/media/usb/s2255/s2255drv.c …

Continue reading

[media] rc: Deletion of unnecessary checks before two function calls

Author: Markus Elfring <elfring@users.sourceforge.net> The functions input_free_device() and rc_close() test whether their argument is NULL and then return immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Signed-off-by: Mauro Carvalho Chehab — drivers/media/rc/lirc_dev.c | 3 +– drivers/media/rc/rc-main.c | 3 +– 2 files …

Continue reading

[media] platform: Deletion of unnecessary checks before two function calls

Author: Markus Elfring <elfring@users.sourceforge.net> The functions i2c_put_adapter() and release_firmware() test whether their argument is NULL and then return immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Signed-off-by: Mauro Carvalho Chehab — drivers/media/platform/exynos4-is/fimc-is.c | 6 ++—- drivers/media/platform/s3c-camif/camif-core.c | 3 +– 2 files …

Continue reading

drivers: atm: eni: Add pci_dma_mapping_error() call

Author: Tina Johnson <tinajohnson.1234@gmail.com> Added a pci_dma_mapping_error() call to check for mapping errors before further using the dma handle. In case of error, control goes to a new label where the incoming skb is freed. Unchecked dma handles were found using Coccinelle: @rule1@ expression e1; identifier x; @@ *x = pci_map_single(…); … when != pci_dma_mapping_error(e1,x) …

Continue reading

[media] i2c: Deletion of an unnecessary check before the function call “rc_unregister_device”

Author: Markus Elfring <elfring@users.sourceforge.net> The rc_unregister_device() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Signed-off-by: Mauro Carvalho Chehab — drivers/media/i2c/ir-kbd-i2c.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-)   …

Continue reading

[media] firewire: Deletion of an unnecessary check before the function call “dvb_unregister_device”

Author: Markus Elfring <elfring@users.sourceforge.net> The dvb_unregister_device() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Reviewed-by: Stefan Richter Signed-off-by: Mauro Carvalho Chehab — drivers/media/firewire/firedtv-ci.c | 3 +– 1 file changed, 1 insertion(+), …

Continue reading

[media] DVB-frontends: Deletion of unnecessary checks before the function call “release_firmware”

Author: Markus Elfring <elfring@users.sourceforge.net> GIT_AUTHOR_DATE=1416472432 The release_firmware() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Signed-off-by: Mauro Carvalho Chehab — drivers/media/dvb-frontends/drx39xyj/drxj.c | 3 +– drivers/media/dvb-frontends/drxk_hard.c | 3 +– drivers/media/dvb-frontends/m88ds3103.c | 3 …

Continue reading

mISDN: Deletion of unnecessary checks before the function call “vfree”

Author: Markus Elfring <elfring@users.sourceforge.net> The vfree() function performs also input parameter validation. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Signed-off-by: David S. Miller — drivers/isdn/mISDN/l1oip_codec.c | 6 ++—- 1 file changed, 2 insertions(+), 4 deletions(-)   diff –git a/drivers/isdn/mISDN/l1oip_codec.c b/drivers/isdn/mISDN/l1oip_codec.c index …

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.