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>
This commit is contained in:
Colin Ian King 2021-04-20 11:57:18 +01:00 коммит произвёл Greg Kroah-Hartman
Родитель c0070e1e60
Коммит 86eb032675
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -4958,7 +4958,7 @@ static int loopback_test(struct slgt_info *info)
#define TESTFRAMESIZE 20 #define TESTFRAMESIZE 20
unsigned long timeout; unsigned long timeout;
u16 count = TESTFRAMESIZE; u16 count;
unsigned char buf[TESTFRAMESIZE]; unsigned char buf[TESTFRAMESIZE];
int rc = -ENODEV; int rc = -ENODEV;
unsigned long flags; unsigned long flags;