Articles de cet auteur
Nov 19 2014
HID: picoLCD: Deletion of unnecessary checks before three function calls
Author: Markus Elfring <elfring@users.sourceforge.net> The functions backlight_device_unregister(), lcd_device_unregister() and rc_unregister_device() 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 Reviewed-by: Bruno Prémont Signed-off-by: Jiri Kosina — drivers/hid/hid-picolcd_backlight.c | 3 +– drivers/hid/hid-picolcd_cir.c | 3 …
Nov 19 2014
drm/vmwgfx: Deletion of an unnecessary check before the function call « vfree »
Author: Markus Elfring <elfring@users.sourceforge.net> The vfree() function performes 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 Reviewed-by: Thierry Reding Signed-off-by: Dave Airlie — drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff –git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c …
Nov 19 2014
drm/udl: Deletion of an unnecessary check before the function call « vunmap »
Author: Markus Elfring <elfring@users.sourceforge.net> The vunmap() function performes 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 Reviewed-by: Thierry Reding Signed-off-by: Dave Airlie — drivers/gpu/drm/udl/udl_gem.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff –git a/drivers/gpu/drm/udl/udl_gem.c …
Nov 19 2014
drm/tilcdc: Deletion of an unnecessary check before the function call « drm_fbdev_cma_hotplug_event »
Author: Markus Elfring <elfring@users.sourceforge.net> The drm_fbdev_cma_hotplug_event() 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: Thierry Reding Signed-off-by: Dave Airlie — drivers/gpu/drm/tilcdc/tilcdc_drv.c | 3 +– 1 file changed, 1 insertion(+), 2 …
Nov 19 2014
drm/edid: 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 Reviewed-by: Thierry Reding Signed-off-by: Dave Airlie — drivers/gpu/drm/drm_edid_load.c | 3 +– 1 file changed, 1 insertion(+), 2 …
Nov 19 2014
EDAC: Delete unnecessary check before calling 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 before 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/546CB20D.4070808@users.sourceforge.net [ Boris: commit message. ] Signed-off-by: Borislav Petkov — drivers/edac/i3000_edac.c | 3 +– drivers/edac/i3200_edac.c | …
Nov 19 2014
char: tpm: Deletion of unnecessary checks before the function call « tpm_dev_vendor_release »
Author: Markus Elfring <elfring@users.sourceforge.net> The tpm_dev_vendor_release() 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: Peter Huewe — drivers/char/tpm/tpm_i2c_atmel.c | 3 +– drivers/char/tpm/tpm_i2c_nuvoton.c | 3 +– 2 files changed, 2 insertions(+), …
Nov 19 2014
drbd: Deletion of an unnecessary check before the function call « lc_destroy »
Author: Markus Elfring <elfring@users.sourceforge.net> The lc_destroy() 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: Roland Kammerer Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg Signed-off-by: Jens Axboe — drivers/block/drbd/drbd_nl.c | 3 +– …
Nov 19 2014
firmware class: Deletion of an unnecessary check before the function call « vunmap »
Author: Markus Elfring <elfring@users.sourceforge.net> The vunmap() function performes 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: Greg Kroah-Hartman — drivers/base/firmware_class.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff –git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c index 9962744..58470c3 …
Nov 18 2014
netlink: Deletion of an unnecessary check before the function call « __module_get »
Author: Markus Elfring <elfring@users.sourceforge.net> The __module_get() 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 — net/netlink/af_netlink.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) …