Category: Linux

[media] gscpa_m5602: use msecs_to_jiffies for conversions

Author: Nicholas Mc Guire <hofrat@osadl.org> API compliance scanning with coccinelle flagged: ./drivers/media/usb/gspca/m5602/m5602_s5k83a.c:180:9-25: WARNING: timeout (100) seems HZ dependent Numeric constants passed to schedule_timeout() make the effective timeout HZ dependent which makes little sense in a polling loop for the cameras rotation state. Fixed up by converting the constant to jiffies with msecs_to_jiffies() Signed-off-by: Nicholas Mc …

Continue reading

wan: dscc4: use msecs_to_jiffies for conversions

Author: Nicholas Mc Guire <hofrat@osadl.org> API compliance scanning with coccinelle flagged: ./drivers/net/wan/dscc4.c:1036:1-33: WARNING: timeout (10) seems HZ dependent ./drivers/net/wan/dscc4.c:554:2-34: WARNING: timeout (10) seems HZ dependent ./drivers/net/wan/dscc4.c:599:2-34: WARNING: timeout (10) seems HZ dependent Numeric constants passed to schedule_timeout_*() make the effective timeout HZ dependent which does not seem to be the intent here. Fixed up by …

Continue reading

cosa: use msecs_to_jiffies for conversions

Author: Nicholas Mc Guire <hofrat@osadl.org> API compliance scanning with coccinelle flagged: ./drivers/net/wan/cosa.c:520:2-18: WARNING: timeout (30) seems HZ dependent Numeric constants passed to schedule_timeout() make the effective timeout HZ dependent which makes little sense in a device probe. Fixed up by converting the constant to jiffies with msecs_to_jiffies() Signed-off-by: Nicholas Mc Guire Signed-off-by: David S. Miller …

Continue reading

ASoC: zx: fix platform_no_drv_owner.cocci warnings

Author: kbuild test robot <fengguang.wu@intel.com> sound/soc/zte/zx296702-i2s.c:428: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 Signed-off-by: Mark Brown — sound/soc/zte/zx296702-i2s.c | 1 – 1 file changed, 1 deletion(-)   diff –git a/sound/soc/zte/zx296702-i2s.c b/sound/soc/zte/zx296702-i2s.c index 472fde3..98d96e1 100644 …

Continue reading

video: fbdev: vesafb: use arch_phys_wc_add()

Author: Luis R. Rodriguez <mcgrof@suse.com> This driver uses the same area for MTRR as for the ioremap_wc(), if anything it just uses a smaller size in case MTRR reservation fails. ioremap_wc() API is already used to take advantage of architecture write-combining when available. Convert the driver from using the x86 specific MTRR code to the …

Continue reading

ASoC: zx: fix simple_return.cocci warnings

Author: kbuild test robot <fengguang.wu@intel.com> sound/soc/zte/zx296702-spdif.c:191:1-4: WARNING: end returns can be simpified Simplify a trivial if-return sequence. Possibly combine with a preceding function call. Generated by: scripts/coccinelle/misc/simple_return.cocci Signed-off-by: Fengguang Wu Signed-off-by: Mark Brown — sound/soc/zte/zx296702-spdif.c | 6 +—– 1 file changed, 1 insertion(+), 5 deletions(-)   diff –git a/sound/soc/zte/zx296702-spdif.c b/sound/soc/zte/zx296702-spdif.c index 27d940c..4a93bca 100644 — a/sound/soc/zte/zx296702-spdif.c …

Continue reading

ASoC: zx: fix platform_no_drv_owner.cocci warnings

Author: kbuild test robot <fengguang.wu@intel.com> sound/soc/zte/zx296702-spdif.c:361: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 Signed-off-by: Mark Brown — sound/soc/zte/zx296702-spdif.c | 1 – 1 file changed, 1 deletion(-)   diff –git a/sound/soc/zte/zx296702-spdif.c b/sound/soc/zte/zx296702-spdif.c index b01df81..27d940c 100644 …

Continue reading

staging:rtl8712:Fix compressed return statement

Author: Prasanna Karthik <mkarthi3@visteon.com> Fix reported by coccinelle compressing last two lines with single return call Signed-off-by: Prasanna Karthik Acked-by: Larry Finger Signed-off-by: Greg Kroah-Hartman — drivers/staging/rtl8712/rtl871x_sta_mgt.c | 4 +— 1 file changed, 1 insertion(+), 3 deletions(-)   diff –git a/drivers/staging/rtl8712/rtl871x_sta_mgt.c b/drivers/staging/rtl8712/rtl871x_sta_mgt.c index a9b93d0..6ae8cdc 100644 — a/drivers/staging/rtl8712/rtl871x_sta_mgt.c +++ b/drivers/staging/rtl8712/rtl871x_sta_mgt.c @@ -270,12 +270,10 @@ void r8712_init_bcmc_stainfo(struct …

Continue reading

net: thunderx: check if memory allocation was successful

Author: Aleksey Makarov <aleksey.makarov@caviumnetworks.com> This fixes a coccinelle warning: coccinelle warnings: (new ones prefixed by >>) >> drivers/net/ethernet/cavium/thunder/nicvf_queues.c:360:1-11: alloc >> with no test, possible model on line 367 vim +360 drivers/net/ethernet/cavium/thunder/nicvf_queues.c 354 err = nicvf_alloc_q_desc_mem(nic, &sq->dmem, q_len, SND_QUEUE_DESC_SIZE, 355 NICVF_SQ_BASE_ALIGN_BYTES); 356 if (err) 357 return err; 358 359 sq->desc = sq->dmem.base; > 360 sq->skbuff = …

Continue reading

staging: wilc1000: remove unnecessary typecast

Author: Hari Prasath Gujulan Elango <hgujulan@visteon.com> Remove ununecessary typecast for kzalloc.This patch was generated by coccinelle tool Signed-off-by: Hari Prasath Gujulan Elango Signed-off-by: Greg Kroah-Hartman — drivers/staging/wilc1000/linux_wlan_spi.c | 8 ++++—- 1 file changed, 4 insertions(+), 4 deletions(-)   diff –git a/drivers/staging/wilc1000/linux_wlan_spi.c b/drivers/staging/wilc1000/linux_wlan_spi.c index e5d7945..1b3333c 100644 — a/drivers/staging/wilc1000/linux_wlan_spi.c +++ b/drivers/staging/wilc1000/linux_wlan_spi.c @@ -162,7 +162,7 @@ int linux_spi_write(uint8_t …

Continue reading

BtrLinux
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.