drivers/usb/storage/realtek_cr.c: fix build
Remove unused local `us', which broke the build. Also nuke an unneeded
cast.
Repairs commit 191648d03d
("usb: storage: Convert US_DEBUGP to
usb_stor_dbg").
Cc: Joe Perches <joe@perches.com>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
c9ef713993
commit
677a0b5ac1
1 changed files with 1 additions and 4 deletions
|
@ -933,14 +933,11 @@ static int realtek_cr_autosuspend_setup(struct us_data *us)
|
||||||
|
|
||||||
static void realtek_cr_destructor(void *extra)
|
static void realtek_cr_destructor(void *extra)
|
||||||
{
|
{
|
||||||
struct rts51x_chip *chip = (struct rts51x_chip *)extra;
|
struct rts51x_chip *chip = extra;
|
||||||
struct us_data *us;
|
|
||||||
|
|
||||||
if (!chip)
|
if (!chip)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
us = chip->us;
|
|
||||||
|
|
||||||
#ifdef CONFIG_REALTEK_AUTOPM
|
#ifdef CONFIG_REALTEK_AUTOPM
|
||||||
if (ss_en) {
|
if (ss_en) {
|
||||||
del_timer(&chip->rts51x_suspend_timer);
|
del_timer(&chip->rts51x_suspend_timer);
|
||||||
|
|
Loading…
Add table
Reference in a new issue