mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
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>
This commit is contained in:
parent
855ed04a37
commit
95ca961c75
1 changed files with 6 additions and 8 deletions
Loading…
Add table
Add a link
Reference in a new issue