summaryrefslogtreecommitdiffstats
path: root/drivers/tty/synclink_gt.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-04-20 11:57:18 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-22 12:01:59 +0200
commit86eb032675766e633ba1ad2902776533e8dd576b (patch)
treed2616835da7681a4c1bbb02a3a5fc24a592fb3ce /drivers/tty/synclink_gt.c
parentc0070e1e60270f6a1e09442a9ab2335f3eaeaad2 (diff)
downloadlinux-86eb032675766e633ba1ad2902776533e8dd576b.tar.bz2
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 <jirislaby@kernel.org> Signed-off-by: Colin Ian King <colin.king@canonical.com> Addresses-Coverity: ("Unused value") Link: https://lore.kernel.org/r/20210420105718.377086-1-colin.king@canonical.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/synclink_gt.c')
-rw-r--r--drivers/tty/synclink_gt.c2
1 files changed, 1 insertions, 1 deletions
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;