diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2013-04-30 18:26:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-30 20:04:00 -0400 |
commit | 677a0b5ac16337277139798ec43fc32ebaae1347 (patch) | |
tree | b27a64ff0dd0e5fb3529f2316f3331348c145b30 /drivers/usb/storage | |
parent | c9ef713993ba168b38d1a97ea0ab00874f1da022 (diff) |
drivers/usb/storage/realtek_cr.c: fix build
Remove unused local `us', which broke the build. Also nuke an unneeded
cast.
Repairs commit 191648d03d20 ("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>
Diffstat (limited to 'drivers/usb/storage')
-rw-r--r-- | drivers/usb/storage/realtek_cr.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/usb/storage/realtek_cr.c b/drivers/usb/storage/realtek_cr.c index 4797228747fb..8623577bbbe7 100644 --- a/drivers/usb/storage/realtek_cr.c +++ b/drivers/usb/storage/realtek_cr.c | |||
@@ -933,14 +933,11 @@ static int realtek_cr_autosuspend_setup(struct us_data *us) | |||
933 | 933 | ||
934 | static void realtek_cr_destructor(void *extra) | 934 | static void realtek_cr_destructor(void *extra) |
935 | { | 935 | { |
936 | struct rts51x_chip *chip = (struct rts51x_chip *)extra; | 936 | struct rts51x_chip *chip = extra; |
937 | struct us_data *us; | ||
938 | 937 | ||
939 | if (!chip) | 938 | if (!chip) |
940 | return; | 939 | return; |
941 | 940 | ||
942 | us = chip->us; | ||
943 | |||
944 | #ifdef CONFIG_REALTEK_AUTOPM | 941 | #ifdef CONFIG_REALTEK_AUTOPM |
945 | if (ss_en) { | 942 | if (ss_en) { |
946 | del_timer(&chip->rts51x_suspend_timer); | 943 | del_timer(&chip->rts51x_suspend_timer); |