Articles de cet auteur
Mar 26 2015
drm/i915/skl: fix semicolon.cocci warnings
Author: kbuild test robot <fengguang.wu@intel.com> drivers/gpu/drm/i915/intel_pm.c:2913:4-5: Unneeded semicolon Removes unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci CC: Tvrtko Ursulin Signed-off-by: Fengguang Wu Signed-off-by: Daniel Vetter — drivers/gpu/drm/i915/intel_pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff –git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index 753a3af..fa4ccb3 100644 — a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c @@ -2910,7 +2910,7 @@ static bool skl_compute_plane_wm(const struct …
Mar 26 2015
Staging: iio: use the BIT macro in adc
Author: Haneen Mohammed <hamohammed.sa@gmail.com> This patch replaces bit shifting on: 0,1,2, and 3 with the BIT(x) macro. Issue addressed by checkpatcg.pl. This was done with the help of Coccinelle: @r1@ identifier x; constant int g; @@ ( 0
Mar 25 2015
cxgb4: fix boolreturn.cocci warnings
Author: Wu Fengguang <fengguang.wu@intel.com> drivers/net/ethernet/chelsio/cxgb4/cxgb4_fcoe.c:49:9-10: WARNING: return of 0/1 in function ‘cxgb_fcoe_sof_eof_supported’ 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: Varun Prakash Signed-off-by: Fengguang Wu Signed-off-by: David S. Miller — drivers/net/ethernet/chelsio/cxgb4/cxgb4_fcoe.c | 6 +++— 1 file changed, 3 insertions(+), 3 deletions(-) diff …
Mar 25 2015
staging: rts5208: Remove RTSX_READ_REG and RTSX_WRITE_REG macros
Author: Joe Perches <joe@perches.com> Macros with hidden flow control are bad form as the code path taken can be unexpected for the reader. Expand these in-place and remove the macros. Done with coccinelle script: @@ expression chip; expression arg1; expression arg2; expression arg3; @@ – RTSX_WRITE_REG(chip, arg1, arg2, arg3); + retval = rtsx_write_register(chip, arg1, arg2, …
Mar 25 2015
staging: rts5208: Remove TRACE_RET and TRACE_GOTO macros
Author: Joe Perches <joe@perches.com> Remove these flow hiding macros. Miscellanea: o Add a macro and function to replace a large inline o Simplify #includes o Add trace.c and update Makefile o Remove static inline filename function and use kbasename instead This reduces object size quite a lot: ~350KB (x86-64 allyesconfig) $ size drivers/staging/rts5208/built-in.o* text data …
Mar 25 2015
usb: chipidea: usbmisc_imx: fix returnvar.cocci warnings
Author: kbuild test robot <fengguang.wu@intel.com> drivers/usb/chipidea/usbmisc_imx.c:277:5-8: Unneeded variable: « ret ». Return « 0 » on line 297 Removes unneeded variable used to store return value. Generated by: scripts/coccinelle/misc/returnvar.cocci Cc: Julia Lawall Signed-off-by: Peter Chen Signed-off-by: Fengguang Wu Signed-off-by: Greg Kroah-Hartman — drivers/usb/chipidea/usbmisc_imx.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff –git a/drivers/usb/chipidea/usbmisc_imx.c b/drivers/usb/chipidea/usbmisc_imx.c index …
Mar 25 2015
Staging: rtl8192u: Fix space issues before ‘(‘ and after ‘)’
Author: Haneen Mohammed <hamohammed.sa@gmail.com> Space is required before the open and after the close parenthesis. This patch adds space after ‘if’ and before ‘{‘. This was done with the help of the following Coccinelle script: @r@ expression E; position p1,p2,p3; @@ if@p1 (E) @p3{@p2 … } @script:python@ p1
Mar 25 2015
Staging: rtl8192u: Add space before open parenthesis
Author: Haneen Mohammed <hamohammed.sa@gmail.com> Space is required before the open parenthesis. This patch adds space after if to address that issue. This was done with the help of the following Coccinelle script: @r@ position p1,p2; @@ if@p1 (@p2 …) { … } @script:python@ p1
Mar 25 2015
usb: host/sl811-hcd: fix platform_no_drv_owner.cocci warnings
Author: kbuild test robot <fengguang.wu@intel.com> drivers/usb/host/sl811-hcd.c:1812: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 Acked-by: Lad, Prabhakar Signed-off-by: Greg Kroah-Hartman — drivers/usb/host/sl811-hcd.c | 1 – 1 file changed, 1 deletion(-) diff –git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c …
Mar 24 2015
Staging: rtl8188eu: replace kzalloc and memcpy by kmemdup
Author: Niranjan Dighe <niranjan.dighe@gmail.com> This was generated by ‘make coccicheck’ using scripts at scripts/coccinelle/api/memdup.cocci. Signed-off-by: Niranjan Dighe Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 5 ++— 1 file changed, 2 insertions(+), 3 deletions(-) diff –git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c index 86d955f..be9e34a 100644 — a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c @@ -5431,15 +5431,14 @@ u8 set_tx_beacon_cmd(struct adapter *padapter) goto exit; } …