mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
drm/i915/syncmap: squelch a sparse warning
The code is fine, really, but tweak it to get rid of the sparse warning: drivers/gpu/drm/i915/selftests/i915_syncmap.c:80:54: warning: dubious: x | !y Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231129173506.1194437-1-jani.nikula@intel.com
This commit is contained in:
parent
5f449ed05d
commit
687eb09b1d
|
|
@ -77,7 +77,7 @@ __sync_print(struct i915_syncmap *p,
|
|||
for_each_set_bit(i, (unsigned long *)&p->bitmap, KSYNCMAP) {
|
||||
buf = __sync_print(__sync_child(p)[i], buf, sz,
|
||||
depth + 1,
|
||||
last << 1 | !!(p->bitmap >> (i + 1)),
|
||||
last << 1 | ((p->bitmap >> (i + 1)) ? 1 : 0),
|
||||
i);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user