diff options
| author | Bart Van Assche <bvanassche@acm.org> | 2026-09-25 11:26:06 -0700 |
|---|---|---|
| committer | Martin K. Petersen (Oracle) <mkp@kernel.org> | 2026-10-14 22:38:45 -0400 |
| commit | 107115c393ea2bc092ab94c5d72bf10cf641f495 (patch) | |
| tree | ed5508ab3a6d6099271d12dbaae0402def76c964 /tools/lib/python/kdoc | |
| parent | 11c345d6dbd8ba3724206c6683f2d7a0ca1cb3eb (diff) | |
scsi: hpsa: Prepare for enabling lock context analysis
mutex_lock_interruptible() returns a negative value upon failure or zero
upon success. Since the Clang thread-safety analyzer only supports == 0
and != 0 tests for functions that perform conditional locking, change
the == -EINTR test into != 0. This change does not modify the behavior
of hpsa_do_reset().
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/4e3a71e82eb2deac956ac51f9019c410037526b4.1790360262.git.bvanassche@acm.org
Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions
