Articles de cet auteur
Dec 26 2014
atl1e: Use setup_timer
Author: Julia Lawall <julia.lawall@lip6.fr> Convert a call to init_timer and accompanying intializations of the timer’s data and function fields to a call to setup_timer. A simplified version of the semantic match that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression t,f,d; @@ -init_timer(&t); +setup_timer(&t,f,d); -t.function = f; -t.data = d; // Signed-off-by: Julia …
Dec 26 2014
atheros: atlx: Use setup_timer
Author: Julia Lawall <julia.lawall@lip6.fr> Convert a call to init_timer and accompanying intializations of the timer’s data and function fields to a call to setup_timer. A simplified version of the semantic match that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression t,f,d; @@ -init_timer(&t); +setup_timer(&t,f,d); -t.function = f; -t.data = d; // Signed-off-by: Julia …
Dec 26 2014
[media] s2255drv: Use setup_timer
Author: Julia Lawall <Julia.Lawall@lip6.fr> Convert a call to init_timer and accompanying intializations of the timer’s data and function fields to a call to setup_timer. A simplified version of the semantic match that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression t,f,d; @@ -init_timer(&t); +setup_timer(&t,f,d); -t.function = f; -t.data = d; // Signed-off-by: Julia …
Dec 26 2014
[media] au0828: Use setup_timer
Author: Julia Lawall <Julia.Lawall@lip6.fr> Convert a call to init_timer and accompanying intializations of the timer’s data and function fields to a call to setup_timer. A simplified version of the semantic match that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression t,f,d; @@ -t.function = f; -t.data = d; -init_timer(&t); +setup_timer(&t,f,d); // Signed-off-by: Julia …
Dec 24 2014
openvswitch: fix odd_ptr_err.cocci warnings
Author: Wu Fengguang <fengguang.wu@intel.com> net/openvswitch/vport-gre.c:188:5-11: inconsistent IS_ERR and PTR_ERR, PTR_ERR on line 189 PTR_ERR should access the value just tested by IS_ERR Semantic patch information: There can be false positives in the patch case, where it is the call IS_ERR that is wrong. Generated by: scripts/coccinelle/tests/odd_ptr_err.cocci CC: Pravin B Shelar Signed-off-by: Fengguang Wu Acked-by: Pravin …
Dec 21 2014
ASoC: Intel: fix platform_no_drv_owner.cocci warnings
Author: kbuild test robot <fengguang.wu@intel.com> sound/soc/intel/cht_bsw_rt5672.c:273: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 Signed-off-by: Fengguang Wu Signed-off-by: Mark Brown — sound/soc/intel/cht_bsw_rt5672.c | 1 – 1 file changed, 1 deletion(-) diff –git a/sound/soc/intel/cht_bsw_rt5672.c b/sound/soc/intel/cht_bsw_rt5672.c index 9b8b561..a406c610 100644 …
Dec 21 2014
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 …
Dec 13 2014
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(+), …
Dec 11 2014
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, …
Dec 07 2014
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 …