From 77f87bebe381961db71c995abba52cc9d87bdcfb Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 4 Dec 2017 10:43:20 -0800 Subject: [PATCH] EON Steel: remove a few unused variables Most of the new warnings due to compiler flags are just unnecessary noise, but let's clean up at least the obvious and unquestionably valid ones. Signed-off-by: Linus Torvalds --- src/suunto_eonsteel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/suunto_eonsteel.c b/src/suunto_eonsteel.c index f4dcc2b..cbf1b75 100644 --- a/src/suunto_eonsteel.c +++ b/src/suunto_eonsteel.c @@ -474,8 +474,7 @@ static int send_receive(suunto_eonsteel_device_t *eon, unsigned int len_out, const unsigned char *out, unsigned int len_in, unsigned char *in) { - int len, actual, max; - unsigned char buf[2048]; + int len, actual; struct eon_hdr hdr; if (send_cmd(eon, cmd, len_out, out) < 0)