Category: Linux

hp100: fix misspelling of current function in string

Author: Julia Lawall <julia.lawall@lip6.fr> Replace a misspelled function name by %s and then __func__. 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/net/ethernet/hp/hp100.c | 7 +++++– 1 file changed, 5 insertions(+), 2 deletions(-)   diff –git a/drivers/net/ethernet/hp/hp100.c b/drivers/net/ethernet/hp/hp100.c index …

Continue reading

vme: fix misspelling of current function in string

Author: Julia Lawall <Julia.Lawall@lip6.fr> Replace a misspelled function name by %s and then __func__. This is the get function, not the set function, as was indicated by the string. This was done using Coccinelle, including the use of Levenshtein distance, as proposed by Rasmus Villemoes. Signed-off-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman — drivers/vme/vme.c | 2 …

Continue reading

uli526x: fix misspelling of current function in string

Author: Julia Lawall <julia.lawall@lip6.fr> Replace a misspelled function name by %s and then __func__. 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/net/ethernet/dec/tulip/uli526x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff –git a/drivers/net/ethernet/dec/tulip/uli526x.c b/drivers/net/ethernet/dec/tulip/uli526x.c index …

Continue reading

TTY: fix misspelling of current function in string

Author: Julia Lawall <Julia.Lawall@lip6.fr> Replace the last argument of serial_paranoia_check by the actual function name. This was done using Coccinelle, including the use of Levenshtein distance, as proposed by Rasmus Villemoes. Signed-off-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman — drivers/tty/amiserial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff –git a/drivers/tty/amiserial.c b/drivers/tty/amiserial.c index …

Continue reading

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 …

Continue reading

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 …

Continue reading

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 …

Continue reading

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) …

Continue reading

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 …

Continue reading

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, …

Continue reading