Quentin LAMBERT

Author's posts

stmmac: fix ptr_ret.cocci warning

Author: Fengguang Wu <fengguang.wu@intel.com> drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c:304:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(…)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Fengguang Wu [je: rebase and insert newline before return] Signed-off-by: Joachim Eastwood Signed-off-by: David S. Miller — drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 4 +— 1 file changed, 1 insertion(+), 3 deletions(-)   diff –git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c index …

Continue reading

Staging:dgap :Compression of lines for immediate return

Author: Shraddha Barke <shraddha.6596@gmail.com> This patch compresses two lines into a single line if immediate return statement is found. Remove variable rc as it is no longer needed. It is done using script Coccinelle. And coccinelle uses the following semantic patch for this compression function: @@ type T; identifier i,f; constant C; @@ – T …

Continue reading

net: phy: dp83867: fix simple_return.cocci warnings

Author: Wu Fengguang <fengguang.wu@intel.com> drivers/net/phy/dp83867.c:126:1-4: WARNING: end returns can be simpified drivers/net/phy/dp83867.c:74:5-8: WARNING: end returns can be simpified if tested value is negative or 0 Simplify a trivial if-return sequence. Possibly combine with a preceding function call. Generated by: scripts/coccinelle/misc/simple_return.cocci CC: Dan Murphy Signed-off-by: Fengguang Wu Signed-off-by: David S. Miller — drivers/net/phy/dp83867.c | 6 +—– …

Continue reading

cxl: Remove use of macro DEFINE_PCI_DEVICE_TABLE

Author: Vaishali Thakkar <vthakkar1994@gmail.com> Macro DEFINE_PCI_DEVICE_TABLE is deprecated. So, here use struct pci_device_id instead of DEFINE_PCI_DEVICE_TABLE with the goal of getting rid of this macro completely. The Coccinelle semantic patch that performs this transformation is as follows: @@ identifier a; declarer name DEFINE_PCI_DEVICE_TABLE; initializer i; @@ – DEFINE_PCI_DEVICE_TABLE(a) + const struct pci_device_id a[] = i; …

Continue reading

tools: iio: Send error messages to stderr

Author: Cristina Opriceana <cristina.opriceana@gmail.com> This patch indends to make some cleanup and send printf error messages to stderr. The changes were performed with coccinelle for failure messages and manual for other cases, such as wrong usage messages. Signed-off-by: Cristina Opriceana Reviewed-by: Hartmut Knaack Signed-off-by: Jonathan Cameron — tools/iio/generic_buffer.c | 39 ++++++++++++++++++————— tools/iio/iio_event_monitor.c | 14 ++++++—— …

Continue reading

perf/x86/intel/uncore: Remove use of macro DEFINE_PCI_DEVICE_TABLE()

Author: Vaishali Thakkar <vthakkar1994@gmail.com> The DEFINE_PCI_DEVICE_TABLE() macro is deprecated. Use ‘struct pci_device_id’ instead of DEFINE_PCI_DEVICE_TABLE(), with the goal of getting rid of this macro completely. This Coccinelle semantic patch performs this transformation: @@ identifier a; declarer name DEFINE_PCI_DEVICE_TABLE; initializer i; @@ – DEFINE_PCI_DEVICE_TABLE(a) + const struct pci_device_id a[] = i; Signed-off-by: Vaishali Thakkar Signed-off-by: Peter …

Continue reading

irqchip/spear-shirq: Prepare shirq_handler for irq argument removal

Author: Thomas Gleixner <tglx@linutronix.de> The irq argument of most interrupt flow handlers is unused or merily used instead of a local variable. The handlers which need the irq argument can retrieve the irq number from the irq descriptor. Search and update was done with coccinelle and the invaluable help of Julia Lawall. Signed-off-by: Thomas Gleixner …

Continue reading

irqchip/versatile-fpga: Prepare fpga_irq_handle for irq argument removal

Author: Thomas Gleixner <tglx@linutronix.de> The irq argument of most interrupt flow handlers is unused or merily used instead of a local variable. The handlers which need the irq argument can retrieve the irq number from the irq descriptor. Search and update was done with coccinelle and the invaluable help of Julia Lawall. Signed-off-by: Thomas Gleixner …

Continue reading

irqchip/tb10x: Prepare tb10x_irq_cascade for irq argument removal

Author: Thomas Gleixner <tglx@linutronix.de> The irq argument of most interrupt flow handlers is unused or merily used instead of a local variable. The handlers which need the irq argument can retrieve the irq number from the irq descriptor. Search and update was done with coccinelle and the invaluable help of Julia Lawall. Signed-off-by: Thomas Gleixner …

Continue reading

irqchip/s3c24xx: Prepare s3c_irq_demux for irq argument removal

Author: Thomas Gleixner <tglx@linutronix.de> The irq argument of most interrupt flow handlers is unused or merily used instead of a local variable. The handlers which need the irq argument can retrieve the irq number from the irq descriptor. Search and update was done with coccinelle and the invaluable help of Julia Lawall. Signed-off-by: Thomas Gleixner …

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.