diff options
| author | Felipe Balbi <balbi@ti.com> | 2015-11-16 16:13:57 -0600 |
|---|---|---|
| committer | Felipe Balbi <balbi@ti.com> | 2015-12-15 09:12:41 -0600 |
| commit | ac7bdcc1b3ad042d21bc65e57503d7b41fc69f05 (patch) | |
| tree | ae6d12290b8ff18de0b8dbfb19b956a16982d968 /tools/perf/scripts/python | |
| parent | usb: dwc3: ep0: purge dev_dbg() calls (diff) | |
| download | linux-ac7bdcc1b3ad042d21bc65e57503d7b41fc69f05.tar.gz linux-ac7bdcc1b3ad042d21bc65e57503d7b41fc69f05.zip | |
usb: dwc3: gadget: simplify next_request() return check
In dwc3_cleanup_done_reqs() we expect that all
iterations of our while (1) loop will find a valid
struct dwc3_request *. In case we don't, we're
dumping a WARN_ON_ONCE() splat so that people report
the failure.
This patch is a simple cleanup converting:
if (!req) {
WARN_ON_ONCE(1);
return 1;
}
to:
if (WARN_ON_ONCE(!req))
return 1;
which is a little easier to read.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
