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

drivers/misc: ti-st: Remove unneeded variable in st_tty_open

st_tty_open do not need local variable to store different value,
Hence just remove it.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Link: https://lore.kernel.org/r/1568307147-43468-1-git-send-email-zhongjiang@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

zhong jiang and committed by
Greg Kroah-Hartman
8b063441 54ecb8f7

+2 -2
+2 -2
drivers/misc/ti-st/st_core.c
··· 708 708 */ 709 709 static int st_tty_open(struct tty_struct *tty) 710 710 { 711 - int err = 0; 712 711 struct st_data_s *st_gdata; 713 712 pr_info("%s ", __func__); 714 713 ··· 730 731 */ 731 732 st_kim_complete(st_gdata->kim_data); 732 733 pr_debug("done %s", __func__); 733 - return err; 734 + 735 + return 0; 734 736 } 735 737 736 738 static void st_tty_close(struct tty_struct *tty)