Quentin LAMBERT

Articles de cet auteur

ata: Delete unnecessary checks before the function call « pci_dev_put »

Author: Markus Elfring <elfring@users.sourceforge.net> The pci_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: Tejun Heo — drivers/ata/pata_cs5530.c | 6 ++—- 1 file changed, 2 insertions(+), 4 deletions(-)   diff …

Lire la suite

EDAC: Delete unnecessary checks before pci_dev_put()

Author: Markus Elfring <elfring@users.sourceforge.net> The pci_dev_put() function tests whether its argument is NULL and thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Link: http://lkml.kernel.org/r/54CFC12C.9010002@users.sourceforge.net Signed-off-by: Borislav Petkov — drivers/edac/i82443bxgx_edac.c | 4 +— drivers/edac/i82860_edac.c | 9 ++——- drivers/edac/i82875p_edac.c | 4 +— drivers/edac/i82975x_edac.c | …

Lire la suite

dm snapshot: remove unnecessary NULL checks before vfree() calls

Author: Markus Elfring <elfring@users.sourceforge.net> The vfree() function performs input parameter validation. Thus the NULL pointer test around vfree() calls is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Signed-off-by: Mike Snitzer — drivers/md/dm-snap-persistent.c | 14 ++++———- 1 file changed, 4 insertions(+), 10 deletions(-)   diff –git a/drivers/md/dm-snap-persistent.c b/drivers/md/dm-snap-persistent.c index …

Lire la suite

[media] staging: bcm2048: Delete an unnecessary check before the function call « video_unregister_device »

Author: Markus Elfring <elfring@users.sourceforge.net> The video_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: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab — drivers/staging/media/bcm2048/radio-bcm2048.c | 4 +— 1 file changed, 1 insertion(+), …

Lire la suite

netlabel: Deletion of an unnecessary check before the function call « cipso_v4_doi_free »

Author: Markus Elfring <elfring@users.sourceforge.net> The cipso_v4_doi_free() 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 Acked-by: Paul Moore Signed-off-by: David S. Miller — net/netlabel/netlabel_cipso_v4.c | 3 +– 1 file changed, 1 insertion(+), …

Lire la suite

netlabel: Deletion of an unnecessary check before the function call « cipso_v4_doi_putdef »

Author: Markus Elfring <elfring@users.sourceforge.net> The cipso_v4_doi_putdef() 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 Acked-by: Paul Moore Signed-off-by: David S. Miller — net/netlabel/netlabel_mgmt.c | 3 +– 1 file changed, 1 insertion(+), …

Lire la suite

[media] mn88472: Deletion of an unnecessary check before the function call « release_firmware »

Author: Markus Elfring <elfring@users.sourceforge.net> 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/staging/media/mn88472/mn88472.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-)   …

Lire la suite

jfs: Deletion of an unnecessary check before the function call « unload_nls »

Author: Markus Elfring <elfring@users.sourceforge.net> The unload_nls() 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: Dave Kleikamp — fs/jfs/super.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-)   diff …

Lire la suite

net: sctp: Deletion of an unnecessary check before the function call « kfree »

Author: Markus Elfring <elfring@users.sourceforge.net> The kfree() 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 Acked-By: Neil Horman Signed-off-by: David S. Miller — net/sctp/associola.c | 3 +– 1 file changed, 1 insertion(+), …

Lire la suite

[media] media: platform: fix platform_no_drv_owner.cocci warnings

Author: Fengguang Wu <fengguang.wu@intel.com> drivers/media/platform/am437x/am437x-vpfe.c:2767:3-8: No need to set .owner here. The core will do it. Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci CC: Benoit Parrot Signed-off-by: Fengguang Wu Acked-by: Lad, Prabhakar Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab — drivers/media/platform/am437x/am437x-vpfe.c | 1 – 1 file changed, 1 …

Lire la suite

BtrLinux
Résumé de la politique de confidentialité

Ce site utilise des cookies afin que nous puissions vous fournir la meilleure expérience utilisateur possible. Les informations sur les cookies sont stockées dans votre navigateur et remplissent des fonctions telles que vous reconnaître lorsque vous revenez sur notre site Web et aider notre équipe à comprendre les sections du site que vous trouvez les plus intéressantes et utiles.