Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

airo: remove unused variables len and dev and clean up formatting

Variables len and dev assigned values but are never used hence they
are redundant and can be removed. Also add in white space in for-loop
and remove some { } braces on if statement.

Cleans up clang warnings:
warning: variable 'len' set but not used [-Wunused-but-set-variable]
warning: variable 'dev' set but not used [-Wunused-but-set-variable]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

authored by

Colin Ian King and committed by
Kalle Valo
d01a4e04 2ddd82ee

+3 -8
+3 -5
drivers/net/wireless/cisco/airo.c
··· 3419 3419 3420 3420 static void airo_handle_tx(struct airo_info *ai, u16 status) 3421 3421 { 3422 - int i, len = 0, index = -1; 3422 + int i, index = -1; 3423 3423 u16 fid; 3424 3424 3425 3425 if (test_bit(FLAG_MPI, &ai->flags)) { ··· 3443 3443 3444 3444 fid = IN4500(ai, TXCOMPLFID); 3445 3445 3446 - for(i = 0; i < MAX_FIDS; i++) { 3447 - if ((ai->fids[i] & 0xffff) == fid) { 3448 - len = ai->fids[i] >> 16; 3446 + for (i = 0; i < MAX_FIDS; i++) { 3447 + if ((ai->fids[i] & 0xffff) == fid) 3449 3448 index = i; 3450 - } 3451 3449 } 3452 3450 3453 3451 if (index != -1) {
-3
drivers/net/wireless/cisco/airo_cs.c
··· 102 102 103 103 static int airo_config(struct pcmcia_device *link) 104 104 { 105 - struct local_info *dev; 106 105 int ret; 107 - 108 - dev = link->priv; 109 106 110 107 dev_dbg(&link->dev, "airo_config\n"); 111 108