commit | 95ca961c758cd9ce789247098b09c39017637e58 | [log] [tgz] |
---|---|---|
author | Felipe Balbi <balbi@ti.com> | Thu Dec 10 13:08:20 2015 -0600 |
committer | Felipe Balbi <balbi@ti.com> | Wed Dec 16 10:07:27 2015 -0600 |
tree | ab592e351593daddcfa530ecad149449bfb18668 | |
parent | 855ed04a3758b205e84b269f92d26ab36ed8e2f7 [diff] |
usb: dwc3: gadget: pass a condition to dev_WARN_ONCE() instead of using: if (condition) { dev_WARN_ONCE(dev, true, "foo"); return -EINVAL; } let's use: if (dev_WARN_ONCE(dev, condition, "foo")) return -EINVAL; Signed-off-by: Felipe Balbi <balbi@ti.com>