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 <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2017-12-04 10:43:20 -08:00
parent 54f6bff929
commit 77f87bebe3

View File

@ -474,8 +474,7 @@ static int send_receive(suunto_eonsteel_device_t *eon,
unsigned int len_out, const unsigned char *out, unsigned int len_out, const unsigned char *out,
unsigned int len_in, unsigned char *in) unsigned int len_in, unsigned char *in)
{ {
int len, actual, max; int len, actual;
unsigned char buf[2048];
struct eon_hdr hdr; struct eon_hdr hdr;
if (send_cmd(eon, cmd, len_out, out) < 0) if (send_cmd(eon, cmd, len_out, out) < 0)