You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
tty: serial/68328serial.c: remove unnecessary null pointer check
The pointer info is dereferened in line 1009, so it is not necessary to check null again in line 1012. Signed-off-by: Cong Ding <dinggnu@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5fe2123647
commit
9ef20d52e0
@@ -1002,7 +1002,7 @@ static void rs_close(struct tty_struct *tty, struct file * filp)
|
||||
m68328_uart *uart = &uart_addr[info->line];
|
||||
unsigned long flags;
|
||||
|
||||
if (!info || serial_paranoia_check(info, tty->name, "rs_close"))
|
||||
if (serial_paranoia_check(info, tty->name, "rs_close"))
|
||||
return;
|
||||
|
||||
local_irq_save(flags);
|
||||
|
||||
Reference in New Issue
Block a user