summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@suse.de>2023-06-07 23:54:02 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-06-13 11:56:11 +0200
commit6b394dbb6469e438c537f84899402ffdb8fcbdbd (patch)
tree2c1e4f9e7a3e266662e819456533caad687b669f /tools/perf/scripts/python/exported-sql-viewer.py
parent5ae8a35459e77fd9ddb1844baa8c736fc0223847 (diff)
usb: gadget: f_mass_storage: remove unnecessary open check
The fsg_lun_is_open() test can be eliminated and the code merged with the preceding conditional, because the LUN won't be open if cfg->filename wasn't set. Similarly, the error_lun label will never be reached with an open lun (non-null filp) so remove the unnecessary fsg_lun_close() call. Signed-off-by: David Disseldorp <ddiss@suse.de> Reviewed-by: Alan Stern <stern@rowland.harvard.edu> Message-ID: <20230607215401.22563-1-ddiss@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions