From 713a1581efdb741559b18e2f00cbe53dda0f5b97 Mon Sep 17 00:00:00 2001 From: Steve Lin Date: Tue, 14 Feb 2012 14:26:03 -0800 Subject: usb: cdc-acm: Fix compilation warning in cdc-acm driver. Bug 934177 Change-Id: If101278cf553bd92ad98a9485cedf0c3bf1df39a Signed-off-by: Steve Lin Reviewed-on: http://git-master/r/83913 --- drivers/usb/class/cdc-acm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/usb/class/cdc-acm.c') diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index d3bb2fc7fe2b..e1331590909c 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c @@ -1381,11 +1381,12 @@ static int acm_suspend(struct usb_interface *intf, pm_message_t message) static int acm_resume(struct usb_interface *intf) { struct acm *acm = usb_get_intfdata(intf); - struct acm_wb *wb; int rv = 0; int cnt; #ifdef CONFIG_PM struct urb *res; +#else + struct acm_wb *wb; #endif spin_lock_irq(&acm->read_lock); -- cgit v1.2.3