Author's posts
Feb 05 2015
ueagle-atm: Delete unnecessary checks 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: Greg Kroah-Hartman — drivers/usb/atm/ueagle-atm.c | 4 ++– 1 file changed, 2 insertions(+), 2 deletions(-) diff …
Feb 05 2015
USB: appledisplay: Deletion of a check before backlight_device_unregister()
Author: Markus Elfring <elfring@users.sourceforge.net> The backlight_device_unregister() 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: Greg Kroah-Hartman — drivers/usb/misc/appledisplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff …
Feb 05 2015
driver core: Delete an unnecessary check before the function call “put_device”
Author: Markus Elfring <elfring@users.sourceforge.net> The put_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: Greg Kroah-Hartman — drivers/base/core.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff …
Feb 04 2015
drivers/macintosh: Delete an unnecessary check before the function call “of_node_put”
Author: Markus Elfring <elfring@users.sourceforge.net> The of_node_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: Benjamin Herrenschmidt — drivers/macintosh/smu.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff …
Feb 04 2015
hostap: Delete 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 Signed-off-by: Kalle Valo — drivers/net/wireless/hostap/hostap_ap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff …
Feb 04 2015
orinoco: Delete 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 Signed-off-by: Kalle Valo — drivers/net/wireless/orinoco/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff …
Feb 04 2015
ath10k: delete unnecessary checks 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: Kalle Valo — drivers/net/wireless/ath/ath10k/core.c | 8 ++++—- 1 file changed, 4 insertions(+), 4 deletions(-) diff …
Feb 04 2015
ath9k: Delete an unnecessary check before the function call “relay_close”
Author: Markus Elfring <elfring@users.sourceforge.net> The relay_close() 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: Kalle Valo — drivers/net/wireless/ath/ath9k/common-spectral.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff …
Feb 04 2015
udf: remove bool assignment to 0/1
Author: Fabian Frederick <fabf@skynet.be> Fix the following coccinelle warnings: fs/udf/inode.c:753:2-13: WARNING: Assignment of bool to 0/1 fs/udf/inode.c:795:2-13: WARNING: Assignment of bool to 0/1 Signed-off-by: Fabian Frederick Signed-off-by: Jan Kara — fs/udf/inode.c | 4 ++– 1 file changed, 2 insertions(+), 2 deletions(-) diff –git a/fs/udf/inode.c b/fs/udf/inode.c index 7b72b7d..a445d59 100644 — a/fs/udf/inode.c +++ b/fs/udf/inode.c @@ -750,7 …
Feb 04 2015
cw1200: Delete 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: Kalle Valo — drivers/net/wireless/cw1200/fwio.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff …