Articles de cet auteur
Mar 10 2015
staging: rtl8188eu: Use kcalloc instead of kzalloc.
Author: Navya Sri Nizamkari <navyasri.tech@gmail.com> This patch uses kcalloc instead of kzalloc function. A coccinelle script was used to make this change. Signed-off-by: Navya Sri Nizamkari Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8188eu/core/rtw_xmit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff –git a/drivers/staging/rtl8188eu/core/rtw_xmit.c b/drivers/staging/rtl8188eu/core/rtw_xmit.c index 7a71df1..7ed60ab 100644 — a/drivers/staging/rtl8188eu/core/rtw_xmit.c +++ b/drivers/staging/rtl8188eu/core/rtw_xmit.c @@ -1634,7 …
Mar 09 2015
Staging: rtl8188eu: Remove redundant local variable
Author: Somya Anand <somyaanand214@gmail.com> This patch removes a redundant variable « val » and adds inline return statements. It also adds a default case to the switch statement which returns 0 to keep the logic intact. It also removes a redundant variable « inx » and adds inline return statements. This issue is identified by the following coccinelle script. …
Mar 09 2015
drivers: staging: iio: meter: Removed unnecessary variable
Author: Tina Johnson <tinajohnson.1234@gmail.com> Variable ret is used only to store the return value. Hence ret is removed and the return statement modified. Coccinelle was used to detect such removable variables: @rule1@ identifier ret; expression e; @@ -ret = +return e; -return ret; Signed-off-by: Tina Johnson Signed-off-by: Greg Kroah-Hartman — drivers/staging/iio/meter/ade7854-spi.c | 6 +—– 1 …
Mar 09 2015
drivers: staging: iio: meter: Removed unnecessary variable
Author: Tina Johnson <tinajohnson.1234@gmail.com> Variable ret is used only to store the return value. Hence ret is removed and the return statement modified. Coccinelle was used to detect such removable variables: @rule1@ identifier ret; expression e; @@ -ret = +return e; -return ret; Signed-off-by: Tina Johnson Signed-off-by: Greg Kroah-Hartman — drivers/staging/iio/meter/ade7854-i2c.c | 5 +—- 1 …
Mar 09 2015
drivers: staging: iio: meter: Removed unnecessary variable
Author: Tina Johnson <tinajohnson.1234@gmail.com> Variable ret is used only to store the error code to be returned. Hence use of ret is removed and the return statement modified. Coccinelle was used to prepare the patch: @rule1@ identifier ret; expression e; @@ -ret = +return e; -return ret; Signed-off-by: Tina Johnson Signed-off-by: Greg Kroah-Hartman — drivers/staging/iio/meter/ade7758_ring.c …
Mar 09 2015
drivers: staging: iio: meter: Removed unnecessary variable
Author: Tina Johnson <tinajohnson.1234@gmail.com> Variable len is used only to store the return value. Hence len is removed and the return statement modified. Coccinelle was used to detect such removable variables: @rule1@ identifier ret; expression e; @@ -ret = +return e; -return ret; Signed-off-by: Tina Johnson Signed-off-by: Greg Kroah-Hartman — drivers/staging/iio/meter/ade7758_core.c | 5 ++— 1 …
Mar 09 2015
drivers: staging: iio: accel: Removed unnecessary variable
Author: Tina Johnson <tinajohnson.1234@gmail.com> Variable len is used only to store the return value. Hence len is removed and the return statement modified. Coccinelle was used to detect such removable variables: @rule1@ identifier ret; expression e; @@ -ret = +return e; -return ret; Signed-off-by: Tina Johnson Signed-off-by: Greg Kroah-Hartman — drivers/staging/iio/accel/sca3000_core.c | 6 ++—- 1 …
Mar 09 2015
Staging rtl8172: Remove unnecessary typecast
Author: Vatika Harlalka <vatikaharlalka@gmail.com> Using addressof and then casting to the original type is unneeded. So these casts can be removed. Issue detected via Coccinelle script. Signed-off-by: Vatika Harlalka Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8712/hal_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff –git a/drivers/staging/rtl8712/hal_init.c b/drivers/staging/rtl8712/hal_init.c index 324da34..0a1c631 100644 — a/drivers/staging/rtl8712/hal_init.c +++ …
Mar 09 2015
drivers: staging: rtl8723au: hal: Removed unnecessary parentheses
Author: Tina Johnson <tinajohnson.1234@gmail.com> Parentheses around the right side of an assignment statement are unnecessary and hence removed. Coccinelle was used to produce the patch: @rule1@ identifier x,y; constant c; @@ ( x = -( y > c -) ; | x = -( y + c -) ; | x = -( y – …
Mar 09 2015
drivers: staging: rtl8723au: core: Removed unnecessary parentheses
Author: Tina Johnson <tinajohnson.1234@gmail.com> Parentheses around the right side of an assignment statement are unnecessary and hence removed. Coccinelle was used to produce the patch: @rule1@ identifier x,y; constant c; @@ ( x = -( y > c -) ; | x = -( y + c -) ; | x = -( y – …