From: Colin Ian King Date: Tue, 20 Apr 2021 10:57:18 +0000 (+0100) Subject: tty: synclink_gt: remove redundant initialization of variable count X-Git-Tag: v5.15.73~12145^2~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=86eb032675766e633ba1ad2902776533e8dd576b;p=platform%2Fkernel%2Flinux-rpi.git tty: synclink_gt: remove redundant initialization of variable count The variable count is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Reviewed-by: Jiri Slaby Signed-off-by: Colin Ian King Addresses-Coverity: ("Unused value") Link: https://lore.kernel.org/r/20210420105718.377086-1-colin.king@canonical.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/synclink_gt.c b/drivers/tty/synclink_gt.c index 994618618466..5523cf7bd1c2 100644 --- a/drivers/tty/synclink_gt.c +++ b/drivers/tty/synclink_gt.c @@ -4958,7 +4958,7 @@ static int loopback_test(struct slgt_info *info) #define TESTFRAMESIZE 20 unsigned long timeout; - u16 count = TESTFRAMESIZE; + u16 count; unsigned char buf[TESTFRAMESIZE]; int rc = -ENODEV; unsigned long flags;