Category: Linux

ASoC: Intel: fix platform_no_drv_owner.cocci warnings

Author: kbuild test robot <fengguang.wu@intel.com> sound/soc/intel/bytcr_dpcm_rt5640.c:218:3-8: No need to set .owner here. The core will do it. Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci CC: Subhransu S. Prusty Signed-off-by: Fengguang Wu Signed-off-by: Mark Brown — sound/soc/intel/bytcr_dpcm_rt5640.c | 1 – 1 file changed, 1 deletion(-)   diff –git a/sound/soc/intel/bytcr_dpcm_rt5640.c …

Continue reading

mm/zswap: delete unnecessary check before calling free_percpu()

Author: Markus Elfring <elfring@users.sourceforge.net> free_percpu() 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 Cc: Seth Jennings Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds — mm/zswap.c | 3 +– 1 file changed, 1 insertion(+), …

Continue reading

nilfs2: deletion of an unnecessary check 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: Ryusuke Konishi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds — fs/nilfs2/the_nilfs.c | 3 +– 1 file changed, …

Continue reading

TTY: 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: Greg Kroah-Hartman — drivers/tty/rocket.c | 4 ++– 1 file changed, 2 insertions(+), 2 deletions(-)   diff –git a/drivers/tty/rocket.c b/drivers/tty/rocket.c index 383c4c7..c8dd8dc …

Continue reading

usb: gadget: 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: Felipe Balbi — drivers/usb/gadget/function/f_hid.c | 5 +++– drivers/usb/gadget/function/f_midi.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-)   diff –git …

Continue reading

drm/i2c: tda998x: 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: Russell King — drivers/gpu/drm/i2c/tda998x_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff –git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index 4dcf474..d853ab5 …

Continue reading

rtlwifi: rtl8821ae: fix misspelling of current function in string

Author: Julia Lawall <Julia.Lawall@lip6.fr> Replace a misspelled function name by %s and then __func__. 8821 was written as 8812. This was done using Coccinelle, including the use of Levenshtein distance, as proposed by Rasmus Villemoes. Signed-off-by: Julia Lawall Signed-off-by: John W. Linville — drivers/net/wireless/rtlwifi/rtl8821ae/dm.c | 11 +++++—— 1 file changed, 5 insertions(+), 6 deletions(-)   …

Continue reading

hostap_cs: 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: John W. Linville — drivers/net/wireless/hostap/hostap_cs.c | 15 +++++———- 1 file changed, 5 insertions(+), 10 deletions(-)   diff –git a/drivers/net/wireless/hostap/hostap_cs.c b/drivers/net/wireless/hostap/hostap_cs.c index …

Continue reading

chelsio: 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/chelsio/cxgb/sge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff –git a/drivers/net/ethernet/chelsio/cxgb/sge.c b/drivers/net/ethernet/chelsio/cxgb/sge.c index …

Continue reading

zd1211rw: 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: John W. Linville — drivers/net/wireless/zd1211rw/zd_chip.c | 6 +++— 1 file changed, 3 insertions(+), 3 deletions(-)   diff –git a/drivers/net/wireless/zd1211rw/zd_chip.c b/drivers/net/wireless/zd1211rw/zd_chip.c index …

Continue reading