Articles de cet auteur
Dec 07 2014
isdn: fix misspelling of current function in string
Author: Julia Lawall <julia.lawall@lip6.fr> Replace a misspelled function name by %s and then __func__. In the first case, the print is just dropped, because kmalloc itself does enough error reporting. This was done using Coccinelle, including the use of Levenshtein distance, as proposed by Rasmus Villemoes. Signed-off-by: Julia Lawall Signed-off-by: David S. Miller — drivers/isdn/hisax/hfc_2bs0.c …
Dec 07 2014
dmfe: fix misspelling of current function in string
Author: Julia Lawall <julia.lawall@lip6.fr> The function name contains cleanup, not clean. This was done using Coccinelle, including the use of Levenshtein distance, as proposed by Rasmus Villemoes. Signed-off-by: Julia Lawall Acked-by: Grant Grundler Signed-off-by: David S. Miller — drivers/net/ethernet/dec/tulip/dmfe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff –git a/drivers/net/ethernet/dec/tulip/dmfe.c b/drivers/net/ethernet/dec/tulip/dmfe.c index …
Dec 07 2014
Bluetooth: fix err_cast.cocci warnings
Author: Fengguang Wu <fengguang.wu@intel.com> net/bluetooth/smp.c:2650:9-16: WARNING: ERR_CAST can be used with tfm_aes Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(…)) Generated by: scripts/coccinelle/api/err_cast.cocci Signed-off-by: Fengguang Wu Signed-off-by: Marcel Holtmann — net/bluetooth/smp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff –git a/net/bluetooth/smp.c b/net/bluetooth/smp.c index 3e174f9..0448985 100644 — a/net/bluetooth/smp.c +++ b/net/bluetooth/smp.c @@ -2931,7 +2931,7 …
Dec 03 2014
md: fix semicolon.cocci warnings
Author: kbuild test robot <fengguang.wu@intel.com> drivers/md/md.c:7175:43-44: Unneeded semicolon Removes unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Signed-off-by: Fengguang Wu Signed-off-by: NeilBrown — drivers/md/md.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff –git a/drivers/md/md.c b/drivers/md/md.c index 9233c71..ad5d783 100644 — a/drivers/md/md.c +++ b/drivers/md/md.c @@ -6969,7 +6969,7 @@ static unsigned int mdstat_poll(struct file *filp, poll_table *wait) …
Dec 02 2014
ALSA: i2sbus: Deletion of unnecessary checks before the function call « release_and_free_resource »
Author: Markus Elfring <elfring@users.sourceforge.net> The release_and_free_resource() 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/aoa/soundbus/i2sbus/core.c | 6 ++—- 1 file changed, 2 insertions(+), 4 deletions(-) diff …
Dec 02 2014
tpm/tpm_i2c_stm_st33: Fix coccinelle warnings. Possible NULL pointer dereference
Author: Christophe Ricard <christophe.ricard@gmail.com> If !client the kernel mays oops in dev_info when doing client->dev. Reported-by: Peter Huewe Signed-off-by: Christophe Ricard Signed-off-by: Peter Huewe — drivers/char/tpm/tpm_i2c_stm_st33.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff –git a/drivers/char/tpm/tpm_i2c_stm_st33.c b/drivers/char/tpm/tpm_i2c_stm_st33.c index e643c86..86203b0 100644 — a/drivers/char/tpm/tpm_i2c_stm_st33.c +++ b/drivers/char/tpm/tpm_i2c_stm_st33.c @@ -720,7 +720,7 @@ tpm_stm_i2c_probe(struct i2c_client *client, …
Dec 02 2014
ALSA: trident: Deletion of a check before snd_util_memhdr_free()
Author: Markus Elfring <elfring@users.sourceforge.net> The snd_util_memhdr_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 Signed-off-by: Takashi Iwai — sound/pci/trident/trident_main.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff …
Dec 02 2014
ALSA: echoaudio: Deletion of a check before release_and_free_resource()
Author: Markus Elfring <elfring@users.sourceforge.net> The release_and_free_resource() 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/pci/echoaudio/echoaudio.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff …
Dec 02 2014
ALSA: asihpi: 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/asihpi/hpioctl.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff –git a/sound/pci/asihpi/hpioctl.c b/sound/pci/asihpi/hpioctl.c index e457eb8..6aa677e …
Dec 02 2014
ASoC: mop500: Deletion of unnecessary checks 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: Mark Brown — sound/soc/ux500/mop500.c | 6 ++—- 1 file changed, 2 insertions(+), 4 deletions(-) diff …