Articles de cet auteur
Feb 04 2015
net: ep93xx_eth: Delete unnecessary checks 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: H Hartley Sweeten Signed-off-by: David S. Miller — drivers/net/ethernet/cirrus/ep93xx_eth.c | 6 ++—- 1 file changed, 2 …
Feb 04 2015
qlogic: Deletion of unnecessary checks before two function calls
Author: Markus Elfring <elfring@users.sourceforge.net> The functions kfree() and vfree() perform also input parameter validation. Thus the test around their calls 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/qlogic/qlcnic/qlcnic_main.c | 24 ++++++++————– …/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c | 3 +– 2 files changed, 9 insertions(+), 18 deletions(-) …
Feb 04 2015
netxen: 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: David S. Miller — drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c | 4 +— 1 file changed, 1 insertion(+), 3 deletions(-) …
Feb 04 2015
net: fec: Delete unnecessary checks 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: David S. Miller — drivers/net/ethernet/freescale/fec_main.c | 7 ++—– 1 file changed, 2 insertions(+), 5 deletions(-) …
Feb 04 2015
myri10ge: 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: David S. Miller — drivers/net/ethernet/myricom/myri10ge/myri10ge.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) …
Feb 04 2015
iommu/amd: Convert non-returned local variable to boolean when relevant
Author: Quentin Lambert <lambert.quentin@gmail.com> This patch was produced using Coccinelle. A simplified version of the semantic patch is: @r exists@ identifier f; local idexpression u8 x; identifier xname; @@ f(…) { …when any ( x@xname = 1; | x@xname = 0; ) …when any } @bad exists@ identifier r.f; local idexpression u8 r.x expression e1 …
Feb 04 2015
cxgb4: 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: David S. Miller — drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) …
Feb 03 2015
NetCP: Deletion of unnecessary checks before two function calls
Author: Markus Elfring <elfring@users.sourceforge.net> The functions cpsw_ale_destroy() and of_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: David S. Miller — drivers/net/ethernet/ti/netcp_ethss.c | 6 ++—- 1 file changed, 2 insertions(+), 4 …
Feb 03 2015
IBM-EMAC: Delete an unnecessary check 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) …
Feb 03 2015
cpufreq-dt: Drop unnecessary check before cpufreq_cooling_unregister() invocation
Author: Markus Elfring <elfring@users.sourceforge.net> The cpufreq_cooling_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 [ rjw: Subject ] Signed-off-by: Rafael J. Wysocki — drivers/cpufreq/cpufreq-dt.c | 3 +– 1 file changed, 1 …