Skip to content

Commit 58268de

Browse files
Sudip Mukherjeegregkh
authored andcommitted
usb: storage: ene_ub6250: remove unused variable
The variable Newblk was only being assigned some value but was never used after that. Signed-off-by: Sudip Mukherjee <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 51c7629 commit 58268de

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/usb/storage/ene_ub6250.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,6 @@ static int ms_lib_read_extra(struct us_data *us, u32 PhyBlock,
13641364

13651365
static int ms_libsearch_block_from_physical(struct us_data *us, u16 phyblk)
13661366
{
1367-
u16 Newblk;
13681367
u16 blk;
13691368
struct ms_lib_type_extdat extdat; /* need check */
13701369
struct ene_ub6250_info *info = (struct ene_ub6250_info *) us->extra;
@@ -1377,7 +1376,6 @@ static int ms_libsearch_block_from_physical(struct us_data *us, u16 phyblk)
13771376
if ((blk & MS_PHYSICAL_BLOCKS_PER_SEGMENT_MASK) == 0)
13781377
blk -= MS_PHYSICAL_BLOCKS_PER_SEGMENT;
13791378

1380-
Newblk = info->MS_Lib.Phy2LogMap[blk];
13811379
if (info->MS_Lib.Phy2LogMap[blk] == MS_LB_NOT_USED_ERASED) {
13821380
return blk;
13831381
} else if (info->MS_Lib.Phy2LogMap[blk] == MS_LB_NOT_USED) {

0 commit comments

Comments
 (0)