Skip to content

Commit 5efac89

Browse files
Colin Ian Kingaxboe
authored andcommitted
paride: remove redundant variable n
Variable n is being assigned but is never used hence it is redundant and can be removed. Also put spacing between variables in declaration to clean up checkpatch warnings. Cleans up clang warning: warning: variable 'n' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent e84422c commit 5efac89

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/block/paride/bpck.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ static int bpck_test_proto( PIA *pi, char * scratch, int verbose )
347347

348348
static void bpck_read_eeprom ( PIA *pi, char * buf )
349349

350-
{ int i,j,k,n,p,v,f, om, od;
350+
{ int i, j, k, p, v, f, om, od;
351351

352352
bpck_force_spp(pi);
353353

@@ -356,7 +356,6 @@ static void bpck_read_eeprom ( PIA *pi, char * buf )
356356

357357
bpck_connect(pi);
358358

359-
n = 0;
360359
WR(4,0);
361360
for (i=0;i<64;i++) {
362361
WR(6,8);

0 commit comments

Comments
 (0)