Skip to content

Commit

Permalink
drivers/usb/storage/realtek_cr.c: fix build
Browse files Browse the repository at this point in the history
Remove unused local `us', which broke the build.  Also nuke an unneeded
cast.

Repairs commit 191648d ("usb: storage: Convert US_DEBUGP to
usb_stor_dbg").

Cc: Joe Perches <[email protected]>
Acked-by: David Rientjes <[email protected]>
Cc: Greg KH <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
akpm00 authored and torvalds committed May 1, 2013
1 parent c9ef713 commit 677a0b5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/usb/storage/realtek_cr.c
Original file line number Diff line number Diff line change
Expand Up @@ -933,14 +933,11 @@ static int realtek_cr_autosuspend_setup(struct us_data *us)

static void realtek_cr_destructor(void *extra)
{
struct rts51x_chip *chip = (struct rts51x_chip *)extra;
struct us_data *us;
struct rts51x_chip *chip = extra;

if (!chip)
return;

us = chip->us;

#ifdef CONFIG_REALTEK_AUTOPM
if (ss_en) {
del_timer(&chip->rts51x_suspend_timer);
Expand Down

0 comments on commit 677a0b5

Please sign in to comment.