Skip to content

Commit 0c3855b

Browse files
drm/ttm: fix warning that we shouldn't mix && and ||
Trivial warning fix. Signed-off-by: Christian König <[email protected]> Fixes: 4481913 ("drm/ttm: fix bulk_move corruption when adding a entry") Reviewed-by: Alex Deucher <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 4481913 commit 0c3855b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/ttm/ttm_resource.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ static void ttm_lru_bulk_move_del(struct ttm_lru_bulk_move *bulk,
114114
struct ttm_lru_bulk_move_pos *pos = ttm_lru_bulk_move_pos(bulk, res);
115115

116116
if (unlikely(WARN_ON(!pos->first || !pos->last) ||
117-
pos->first == res && pos->last == res)) {
117+
(pos->first == res && pos->last == res))) {
118118
pos->first = NULL;
119119
pos->last = NULL;
120120
} else if (pos->first == res) {

0 commit comments

Comments
 (0)