Commit 0c3855ba authored by Christian König's avatar Christian König

drm/ttm: fix warning that we shouldn't mix && and ||

Trivial warning fix.
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Fixes: 44819136 ("drm/ttm: fix bulk_move corruption when adding a entry")
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230623070935.65102-1-christian.koenig@amd.com
parent 44819136
......@@ -114,7 +114,7 @@ static void ttm_lru_bulk_move_del(struct ttm_lru_bulk_move *bulk,
struct ttm_lru_bulk_move_pos *pos = ttm_lru_bulk_move_pos(bulk, res);
if (unlikely(WARN_ON(!pos->first || !pos->last) ||
pos->first == res && pos->last == res)) {
(pos->first == res && pos->last == res))) {
pos->first = NULL;
pos->last = NULL;
} else if (pos->first == res) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment