diff options
Diffstat (limited to 'drivers/usb/storage/sddr09.c')
-rw-r--r-- | drivers/usb/storage/sddr09.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/storage/sddr09.c b/drivers/usb/storage/sddr09.c index 3aeaa536c44f..44f8ffccd031 100644 --- a/drivers/usb/storage/sddr09.c +++ b/drivers/usb/storage/sddr09.c | |||
@@ -870,13 +870,12 @@ sddr09_write_lba(struct us_data *us, unsigned int lba, | |||
870 | unsigned int pagelen; | 870 | unsigned int pagelen; |
871 | unsigned char *bptr, *cptr, *xptr; | 871 | unsigned char *bptr, *cptr, *xptr; |
872 | unsigned char ecc[3]; | 872 | unsigned char ecc[3]; |
873 | int i, result, isnew; | 873 | int i, result; |
874 | 874 | ||
875 | lbap = ((lba % 1000) << 1) | 0x1000; | 875 | lbap = ((lba % 1000) << 1) | 0x1000; |
876 | if (parity[MSB_of(lbap) ^ LSB_of(lbap)]) | 876 | if (parity[MSB_of(lbap) ^ LSB_of(lbap)]) |
877 | lbap ^= 1; | 877 | lbap ^= 1; |
878 | pba = info->lba_to_pba[lba]; | 878 | pba = info->lba_to_pba[lba]; |
879 | isnew = 0; | ||
880 | 879 | ||
881 | if (pba == UNDEF) { | 880 | if (pba == UNDEF) { |
882 | pba = sddr09_find_unused_pba(info, lba); | 881 | pba = sddr09_find_unused_pba(info, lba); |
@@ -887,7 +886,6 @@ sddr09_write_lba(struct us_data *us, unsigned int lba, | |||
887 | } | 886 | } |
888 | info->pba_to_lba[pba] = lba; | 887 | info->pba_to_lba[pba] = lba; |
889 | info->lba_to_pba[lba] = pba; | 888 | info->lba_to_pba[lba] = pba; |
890 | isnew = 1; | ||
891 | } | 889 | } |
892 | 890 | ||
893 | if (pba == 1) { | 891 | if (pba == 1) { |