diff options
| author | Christian König <[email protected]> | 2023-06-23 07:08:00 +0000 |
|---|---|---|
| committer | Christian König <[email protected]> | 2023-06-23 15:21:02 +0000 |
| commit | 0c3855ba8dad41c4113e73f77eb926e44577e4af (patch) | |
| tree | ab16dea7f4c45ad66e0a81caef595ca2f4e00470 /drivers/gpu/drm/ttm/ttm_resource.c | |
| parent | drm/ttm: fix bulk_move corruption when adding a entry (diff) | |
| download | kernel-0c3855ba8dad41c4113e73f77eb926e44577e4af.tar.gz kernel-0c3855ba8dad41c4113e73f77eb926e44577e4af.zip | |
drm/ttm: fix warning that we shouldn't mix && and ||
Trivial warning fix.
Signed-off-by: Christian König <[email protected]>
Fixes: 4481913607e5 ("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]
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_resource.c')
| -rw-r--r-- | drivers/gpu/drm/ttm/ttm_resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_resource.c b/drivers/gpu/drm/ttm/ttm_resource.c index e51dbc7a2d53..46ff9c75bb12 100644 --- a/drivers/gpu/drm/ttm/ttm_resource.c +++ b/drivers/gpu/drm/ttm/ttm_resource.c @@ -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) { |
