summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAndrew Goodbody <andrew.goodbody@linaro.org>2025-09-29 10:11:57 +0100
committerMattijs Korpershoek <mkorpershoek@kernel.org>2025-09-30 11:55:23 +0200
commit8cd4a5e94ba2ab73fde3301d6314549dd5a25cb4 (patch)
tree312cd6bbce29a8a8cdd5b0ba2c1a48eee17309f5 /scripts
parent5ac61383b2db15b037e87bd353f726eafc49e181 (diff)
usb: dwc3: Remove redundant test
In dwc3_ep0_complete_data there is a test for 'r' being null and the code will return at that point if so. After that point 'r' is guaranteed to not be null and testing for that is redundant. Remove the test for 'r' being non-null. This issue was found by Smatch. Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org> Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org> Reviewed-by: Marek Vasut <marek.vasut@mailbox.org> Link: https://lore.kernel.org/r/20250929-dwc3_ep0-v1-1-1d5c58933bde@linaro.org Signed-off-by: Mattijs Korpershoek <mkorpershoek@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions