aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/gadget/configfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/configfs.c b/drivers/usb/gadget/configfs.c
index a34633a898a1..3d5cfc9c2c78 100644
--- a/drivers/usb/gadget/configfs.c
+++ b/drivers/usb/gadget/configfs.c
@@ -439,7 +439,7 @@ static int config_usb_cfg_unlink(
439 } 439 }
440 } 440 }
441 mutex_unlock(&gi->lock); 441 mutex_unlock(&gi->lock);
442 __WARN_printf("Unable to locate function to unbind\n"); 442 WARN(1, "Unable to locate function to unbind\n");
443 return 0; 443 return 0;
444} 444}
445 445
@@ -730,7 +730,7 @@ USB_CONFIG_STRINGS_LANG(gadget_strings, gadget_info);
730 730
731static int configfs_do_nothing(struct usb_composite_dev *cdev) 731static int configfs_do_nothing(struct usb_composite_dev *cdev)
732{ 732{
733 __WARN(); 733 WARN_ON(1);
734 return -EINVAL; 734 return -EINVAL;
735} 735}
736 736