Skip to content

Commit

Permalink
paride: remove redundant variable n
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and Jens Axboe committed Jul 9, 2018
1 parent e84422c commit 5efac89
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/block/paride/bpck.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ static int bpck_test_proto( PIA *pi, char * scratch, int verbose )

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

{ int i,j,k,n,p,v,f, om, od;
{ int i, j, k, p, v, f, om, od;

bpck_force_spp(pi);

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

bpck_connect(pi);

n = 0;
WR(4,0);
for (i=0;i<64;i++) {
WR(6,8);
Expand Down

0 comments on commit 5efac89

Please sign in to comment.