aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorFabio M. De Francesco <[email protected]>2021-10-18 18:20:06 +0200
committerGreg Kroah-Hartman <[email protected]>2021-10-19 09:33:54 +0200
commitd9f32a101e431bfb3adc96a5647d85e5fe3a661e (patch)
tree429a046bf5558ce32f9c3a7f481e32ec790b2ece /tools/perf/scripts/python/export-to-postgresql.py
parente8eb2f890f2c60acee7d58ac24840e5b75ffa349 (diff)
staging: r8188eu: Remove redundant 'if' statement
Remove the redundant first 'if' statement of two identical ones. In rtw_cmd_thread() there are two identical 'if' statement, one immediately after the other. They check whether or not the device is removed or the driver is stopped and, if true, they break a 'while' loop. The only noteworthy context difference is that the second statement is within a block labelled "_next". The code has a 'goto' to the "_next" label so that the checking is performed each time the above directive is encountered. Instead, the first 'if' is before the "_next" label. One of the two must be removed and that it must be the one before the label because "bSurpriseRemoved" as well as "bDriverStopped" may be changed asynchronously by other code of the driver and so they should be checked at each jump to "_next". Tested with "ASUSTek Computer, Inc. Realtek 8188EUS [USB-N10 Nano]". Acked-by: Martin Kaiser <[email protected]> Acked-by: Phillip Potter <[email protected]> Signed-off-by: Fabio M. De Francesco <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions