Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

serial: sc16is7xx: remove unnecessary pointer cast

There is no need to cast from a void * pointer, so remove this cast.

Also remove empty line inavertently added in commit d5078509c8b0
("serial: sc16is7xx: improve do/while loop in sc16is7xx_irq()") and
change variables order to follow reversed xmas tree.

Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Link: https://patch.msgid.link/20251027142957.1032073-5-hugo@hugovil.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Hugo Villeneuve and committed by
Greg Kroah-Hartman
aed482b5 bc20238a

+1 -2
+1 -2
drivers/tty/serial/sc16is7xx.c
··· 837 837 838 838 static irqreturn_t sc16is7xx_irq(int irq, void *dev_id) 839 839 { 840 + struct sc16is7xx_port *s = dev_id; 840 841 bool keep_polling; 841 - 842 - struct sc16is7xx_port *s = (struct sc16is7xx_port *)dev_id; 843 842 844 843 do { 845 844 int i;