aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/core.c
diff options
context:
space:
mode:
authorWaiman Long <[email protected]>2021-03-16 15:31:16 +0000
committerIngo Molnar <[email protected]>2021-03-17 08:56:44 +0000
commit5de2055d31ea88fd9ae9709ac95c372a505a60fa (patch)
tree627aa968324f0a86a045733abb7721a4f9aca914 /drivers/usb/cdns3/core.c
parentMerge tag 'fuse-fixes-5.12-rc4' of git://git.kernel.org/pub/scm/linux/kernel/... (diff)
downloadkernel-5de2055d31ea88fd9ae9709ac95c372a505a60fa.tar.gz
kernel-5de2055d31ea88fd9ae9709ac95c372a505a60fa.zip
locking/ww_mutex: Simplify use_ww_ctx & ww_ctx handling
The use_ww_ctx flag is passed to mutex_optimistic_spin(), but the function doesn't use it. The frequent use of the (use_ww_ctx && ww_ctx) combination is repetitive. In fact, ww_ctx should not be used at all if !use_ww_ctx. Simplify ww_mutex code by dropping use_ww_ctx from mutex_optimistic_spin() an clear ww_ctx if !use_ww_ctx. In this way, we can replace (use_ww_ctx && ww_ctx) by just (ww_ctx). Signed-off-by: Waiman Long <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Acked-by: Davidlohr Bueso <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/usb/cdns3/core.c')
0 files changed, 0 insertions, 0 deletions