Articles de cet auteur
Mar 11 2015
Staging: dgnc: Use goto for error handling
Author: Quentin Lambert <lambert.quentin@gmail.com> This patch introduces goto statments for error handling and in cases where a lock needs to be released. A simplified version of the semantic patch that finds this problem is as follows: (http://coccinelle.lip6.fr) @candidates exists@ identifier f, label; statement s; position p1, p2, p3; @@ f@p1(…) { …when any if@p2(…) { …
Mar 11 2015
Staging: rtl8192u: Combine initialization using setup_timer
Author: Somya Anand <somyaanand214@gmail.com> The function setup_timer combines the initialization of a timer with the initialization of the timer’s function and data fields. So, this patch combines the multiline code for timer initialization using the function setup_timer. This issue is identified via coccinelle script. @@ expression E1, E2, E3; type T; @@ – init_timer(&E1); … …
Mar 11 2015
Staging: lustre: Use setup_timer to combine initialization
Author: Somya Anand <somyaanand214@gmail.com> The function setup_timer combines the initialization of a timer with the initialization of the timer’s function and data fields. So, this patch combines the multiline code for timer initialization using the function setup_timer. This issue is identified via coccinelle script. @@ expression E1, E2, E3; type T; @@ – init_timer(&E1); … …
Mar 11 2015
Staging: dgap: Use setup_timer to combine initialization
Author: Somya Anand <somyaanand214@gmail.com> The function setup_timer combines the initialization of a timer with the initialization of the timer’s function and data fields. So, this patch combines the multiline code for timer initialization using the function setup_timer. This issue is identified via coccinelle script. @@ expression E1, E2, E3; type T; @@ – init_timer(&E1); … …
Mar 11 2015
Staging: comedi: Use function setup_timer for combining initialization
Author: Somya Anand <somyaanand214@gmail.com> The function setup_timer combines the initialization of a timer with the initialization of the timer’s function and data fields. So, this patch combines the multiline code for timer initialization using the function setup_timer. This issue is identified via coccinelle script. @@ expression E1, E2, E3; type T; @@ – init_timer(&E1); … …
Mar 11 2015
Staging: rtl8192e: Eliminate use of MSECS macro
Author: Vaishali Thakkar <vthakkar1994@gmail.com> Use msecs_to_jiffies instead of driver specific macro MSECS. This is done using Coccinelle and semantic patch used for this is as follows: @@expression t;@@ – MSECS(t) + msecs_to_jiffies(t) Signed-off-by: Vaishali Thakkar Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c | 6 +++— drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 4 ++– drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 6 +++— drivers/staging/rtl8192e/rtl8192e/rtl_ps.c | 13 +++++++—— …
Mar 11 2015
Staging: rtl8188eu: Eliminate use of _init_timer
Author: Vaishali Thakkar <vthakkar1994@gmail.com> This patch introduces the use of API function setup_timer instead of driver specific function init_timer as it is the preferred and standard way to set and setup the timer. To be compatible with the changes, argument types of referenced functions are changed. Also, definition of function _init_timer is removed as it …
Mar 11 2015
Staging: rtl8188eu: Eliminate use of _set_timer
Author: Vaishali Thakkar <vthakkar1994@gmail.com> This patch introduces the use of API function mod_timer instead of driver specific function _set_timer as it is a more efficient and standard way to update the expire field of an active timer. Also, definition of function _set_timer is removed as it is no longer needed after this change. Here, these …
Mar 11 2015
usb: gadget: lpc32xxx_udc: Fix NULL dereference
Author: Peter Chen <peter.chen@freescale.com> udc is then checked for NULL, if NULL, it is then dereferenced as udc->dev, it is found using Coccinelle. We simplify the code to fix this problem, and we delete some conditions at if {} which will never be met. Reported-by: Tapasweni Pathak Reported-by : Julia Lawall Signed-off-by: Peter Chen Signed-off-by: …
Mar 10 2015
staging: sm750fb: Use kzalloc rather than kmalloc followed by memset with 0
Author: Madhusudhanan Ravindran <mravindran04@gmail.com> The semantic patch that makes this change is available in scriptcoccinelle/api/alloc/kzalloc-simple.cocci. Signed-off-by: Madhusudhanan Ravindran Signed-off-by: Greg Kroah-Hartman — drivers/staging/sm750fb/sm750.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff –git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index 5532a28..aa0888c 100644 — a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -1278,11 +1278,10 @@ static int __init lynxfb_setup(char * options) …