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 …
Catégorie : Linux
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) …
Mar 10 2015
staging: goldfish: remove extra parentheses around function arguments
Author: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> Removes extra parentheses around function arguments. Issue detected and resolved using the following coccinelle script: @@ expression e; identifier f; @@ f(…, -( e -) ,…) Signed-off-by: Aya Mahfouz Signed-off-by: Greg Kroah-Hartman — drivers/staging/goldfish/goldfish_audio.c | 8 ++++—- 1 file changed, 4 insertions(+), 4 deletions(-) diff –git a/drivers/staging/goldfish/goldfish_audio.c b/drivers/staging/goldfish/goldfish_audio.c index f200359..c7f8f1c …
Mar 10 2015
staging: fbtft: fbtft_device.c: remove extra parentheses around function arguments
Author: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> Removes extra parentheses around function arguments. Issue detected and resolved using the following coccinelle script: @@ expression e; identifier f; @@ f(…, -( e -) ,…) Signed-off-by: Aya Mahfouz Signed-off-by: Greg Kroah-Hartman — drivers/staging/fbtft/fbtft_device.c | 4 ++– 1 file changed, 2 insertions(+), 2 deletions(-) diff –git a/drivers/staging/fbtft/fbtft_device.c b/drivers/staging/fbtft/fbtft_device.c index dc48bcc..1afeebb …
Mar 10 2015
staging: fbtft: fbtft-io.c: remove extra parentheses around function arguments
Author: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> Removes extra parentheses around function arguments. Issue detected and resolved using the following coccinelle script: @@ expression e; identifier f; @@ f(…, -( e -) ,…) Signed-off-by: Aya Mahfouz Signed-off-by: Greg Kroah-Hartman — drivers/staging/fbtft/fbtft-io.c | 8 ++++—- 1 file changed, 4 insertions(+), 4 deletions(-) diff –git a/drivers/staging/fbtft/fbtft-io.c b/drivers/staging/fbtft/fbtft-io.c index e19b814..a6f091f …
Mar 10 2015
staging: fbtft: fb_st7735r.c: remove extra parentheses around function arguments
Author: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> Removes extra parentheses around function arguments. Issue detected and resolved using the following coccinelle script: @@ expression e; identifier f; @@ f(…, -( e -) ,…) Signed-off-by: Aya Mahfouz Signed-off-by: Greg Kroah-Hartman — drivers/staging/fbtft/fb_st7735r.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff –git a/drivers/staging/fbtft/fb_st7735r.c b/drivers/staging/fbtft/fb_st7735r.c index 078f502..eb3af1d …
Mar 10 2015
staging: fbtft: fb_s6d02a1.c: remove extra parentheses around function arguments
Author: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> Removes extra parentheses around function arguments. Issue detected and resolved using the following coccinelle script: @@ expression e; identifier f; @@ f(…, -( e -) ,…) Signed-off-by: Aya Mahfouz Signed-off-by: Greg Kroah-Hartman — drivers/staging/fbtft/fb_s6d02a1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff –git a/drivers/staging/fbtft/fb_s6d02a1.c b/drivers/staging/fbtft/fb_s6d02a1.c index e412a42..c87aa25 …
Mar 10 2015
staging: fbtft: fb_hx8353d.c: remove extra parentheses around function arguments
Author: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com> Removes extra parentheses around function arguments. Issue detected and resolved using the following coccinelle script: @@ expression e; identifier f; @@ f(…, -( e -) ,…) Signed-off-by: Aya Mahfouz Signed-off-by: Greg Kroah-Hartman — drivers/staging/fbtft/fb_hx8353d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff –git a/drivers/staging/fbtft/fb_hx8353d.c b/drivers/staging/fbtft/fb_hx8353d.c index c9512dc..ca52465 …