Articles de cet auteur
Feb 19 2015
staging: panel: replace init_timer by setup_timer
Author: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> This patch replaces init_timer and the 2 step initialization of function and data by setup_timer to make the code more concise. The issue was discovered using the following coccinelle script: @@ expression ds, e1, e2; @@ -init_timer (&ds); +setup_timer (&ds, e1, e2); … ( -ds.function = e1; … -ds.data = e2; …
Feb 19 2015
staging: dgnc: replace init_timer by setup_timer
Author: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> This patch replaces init_timer and the 2 step initialization of function and data by setup_timer to make the code more concise. The issue was discovered using the following coccinelle script: @@ expression ds, e1, e2; @@ -init_timer (&ds); +setup_timer (&ds, e1, e2); … ( -ds.function = e1; … -ds.data = e2; …
Feb 19 2015
staging: wlan-ng: replace init_timer by setup_timer
Author: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> This patch replaces init_timer and the 2 step initialization of function and data by setup_timer to make the code more concise. The issue was discovered using the following coccinelle script: @@ expression ds, e1, e2; @@ -init_timer (&ds); +setup_timer (&ds, e1, e2); … ( -ds.function = e1; … -ds.data = e2; …
Feb 18 2015
Staging: media: lirc: Use setup_timer
Author: Vaishali Thakkar <vthakkar1994@gmail.com> This patch introduces the use of function setup_timer instead of structure assignments as it is the preferred way to setup and set the timer. This is done using Coccinelle and semantic patch used is as follows: @@ expression x,y,z; @@ – init_timer (&x); + setup_timer (&x, y, z); – x.function = …
Feb 17 2015
fs/ufs/super.c: remove unnecessary casting
Author: Fabian Frederick <fabf@skynet.be> Fix the following coccinelle warning: fs/ufs/super.c:1418:7-28: WARNING: casting value returned by memory allocation function to (struct ufs_inode_info *) is useless. Signed-off-by: Fabian Frederick Cc: Evgeniy Dushistov Cc: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds — fs/ufs/super.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff –git a/fs/ufs/super.c …
Feb 17 2015
fs/befs/linuxvfs.c: remove unnecessary casting
Author: Fabian Frederick <fabf@skynet.be> Fix the following coccinelle warning: fs/befs/linuxvfs.c:278:14-36: WARNING: casting value returned by memory allocation function to (struct befs_inode_info *) is useless. [akpm@linux-foundation.org: avoid 80-col ugliness] Signed-off-by: Fabian Frederick Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds — fs/befs/linuxvfs.c | 6 +++— 1 file changed, 3 insertions(+), 3 deletions(-) diff –git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index …
Feb 11 2015
Input: adi – remove an unnecessary check
Author: Markus Elfring <elfring@users.sourceforge.net> The input_free_device() 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: Dmitry Torokhov — drivers/input/joystick/adi.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff …
Feb 11 2015
regmap-irq: set IRQF_ONESHOT flag to ensure IRQ request
Author: Valentin Rothberg <Valentin.Rothberg@lip6.fr> Since commit 1c6c69525b40eb76de8adf039409722015927dc3 (« genirq: Reject bogus threaded irq requests ») threaded IRQs without a primary handler need to be requested with IRQF_ONESHOT, otherwise the request will fail. The %irq_flags flag is used to request the threaded IRQ and is also a parameter of the caller. Hence, we cannot be sure that IRQF_ONESHOT …
Feb 11 2015
netfilter: ipset: fix boolreturn.cocci warnings
Author: Wu Fengguang <fengguang.wu@intel.com> net/netfilter/xt_set.c:196:9-10: WARNING: return of 0/1 in function ‘set_match_v3’ with return type bool net/netfilter/xt_set.c:242:9-10: WARNING: return of 0/1 in function ‘set_match_v4’ with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Generated by: scripts/coccinelle/misc/boolreturn.cocci CC: Jozsef Kadlecsik Signed-off-by: Fengguang Wu Acked-by: Jozsef Kadlecsik Signed-off-by: Pablo Neira …
Feb 11 2015
pcmcia: Use setup_timer
Author: Vaishali Thakkar <vthakkar1994@gmail.com> This patch introduces the use of function setup_timer. This is done using Coccinelle and semantic patch used is as follows: @@ expression x,y,z; @@ – init_timer (&x); + setup_timer (&x, y, z); – x.function = y; – x.data = z; Signed-off-by: Vaishali Thakkar Signed-off-by: Greg Kroah-Hartman — drivers/pcmcia/omap_cf.c | 4 +— …