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.

tty: hvc: remove set but unused variable

The local variable vdev in hvcs_destruct_port() is set
but not used. Remove the variable and related code.

Signed-off-by: Bo Liu <liubo03@inspur.com>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20230908061726.2641-1-liubo03@inspur.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Bo Liu and committed by
Greg Kroah-Hartman
46c4699d 22a048b0

-2
-2
drivers/tty/hvc/hvcs.c
··· 664 664 static void hvcs_destruct_port(struct tty_port *p) 665 665 { 666 666 struct hvcs_struct *hvcsd = container_of(p, struct hvcs_struct, port); 667 - struct vio_dev *vdev; 668 667 struct completion *comp; 669 668 unsigned long flags; 670 669 ··· 685 686 printk(KERN_INFO "HVCS: Destroyed hvcs_struct for vty-server@%X.\n", 686 687 hvcsd->vdev->unit_address); 687 688 688 - vdev = hvcsd->vdev; 689 689 hvcsd->vdev = NULL; 690 690 691 691 hvcsd->p_unit_address = 0;