Articles de cet auteur
Nov 18 2014
netfilter: Deletion of unnecessary checks before two function calls
Author: Markus Elfring <elfring@users.sourceforge.net> The functions free_percpu() and module_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 Acked-by: Julian Anastasov Acked-by: Simon Horman Signed-off-by: Pablo Neira Ayuso — net/netfilter/ipvs/ip_vs_ctl.c | 3 +– …
Nov 18 2014
net: pktgen: Deletion of an unnecessary check before the function call « proc_remove »
Author: Markus Elfring <elfring@users.sourceforge.net> The proc_remove() 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/core/pktgen.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) …
Nov 18 2014
PCI: layerscape: Fix platform_no_drv_owner.cocci warnings
Author: Julia Lawall <julia.lawall@lip6.fr> No need to set .owner here. The core will do it. Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Signed-off-by: Julia Lawall Signed-off-by: Bjorn Helgaas — drivers/pci/host/pci-layerscape.c | 1 – 1 file changed, 1 deletion(-) diff –git a/drivers/pci/host/pci-layerscape.c b/drivers/pci/host/pci-layerscape.c index 6697b1a..68c9e5e 100644 — a/drivers/pci/host/pci-layerscape.c +++ b/drivers/pci/host/pci-layerscape.c @@ -167,7 +167,6 @@ MODULE_DEVICE_TABLE(of, ls_pcie_of_match); static struct platform_driver …
Nov 18 2014
udf: Deletion of unnecessary checks before the function call « iput »
Author: Markus Elfring <elfring@users.sourceforge.net> The iput() 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: Jan Kara — fs/udf/super.c | 6 ++—- 1 file changed, 2 insertions(+), 4 deletions(-) diff …
Nov 18 2014
NFS: Deletion of unnecessary checks before the function call « nfs_put_client »
Author: Markus Elfring <elfring@users.sourceforge.net> The nfs_put_client() 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: Trond Myklebust — fs/nfs/filelayout/filelayoutdev.c | 3 +– fs/nfs/nfs4client.c | 15 +++++———- 2 files changed, 6 insertions(+), …
Nov 18 2014
GFS2: Deletion of unnecessary checks before two function calls
Author: Markus Elfring <elfring@users.sourceforge.net> The functions iput() and put_pid() 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: Steven Whitehouse — fs/gfs2/glock.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) …
Nov 17 2014
ASoC: omap-mcbsp: 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: Jarkko Nikula Signed-off-by: Mark Brown — sound/soc/omap/mcbsp.c | 3 +– 1 file changed, 1 insertion(+), 2 …
Nov 17 2014
ALSA: powermac: Deletion of an unnecessary check 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: Takashi Iwai — sound/ppc/pmac.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff …
Nov 17 2014
ALSA: hdsp: 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 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: Takashi Iwai — sound/pci/rme9652/hdsp.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff …
Nov 17 2014
ALSA: lola: Deletion of an unnecessary check 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: Takashi Iwai — sound/pci/lola/lola_mixer.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff –git a/sound/pci/lola/lola_mixer.c b/sound/pci/lola/lola_mixer.c index 782f4d8..e7fe15d …