OSDN Git Service

drm/nouveau/mmu/gp100-: drop unneeded assignment in the if condition.
authorLuo penghao <luo.penghao@zte.com.cn>
Sat, 21 Aug 2021 02:14:47 +0000 (19:14 -0700)
committerKarol Herbst <kherbst@redhat.com>
Mon, 11 Oct 2021 11:06:49 +0000 (13:06 +0200)
commit404046cf48050167bc068bd12fdd2cbce61022c3
treea4f6464ae6a0e35fcb3ea9192767699f952e9801
parent6363185938106f462e293fe4ded485911a9eb08f
drm/nouveau/mmu/gp100-: drop unneeded assignment in the if condition.

In order to keep the code style consistency of the whole file,
the 'inst' assignments should be deleted.

The clang_analyzer complains as follows:

drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c:499:8: warning:
Although the value storedto 'inst' is used in the enclosing expression,
the value is never actually read from 'inst'.

Karol: Removed unneeded brackets.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Luo penghao <luo.penghao@zte.com.cn>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210821021447.27097-1-luo.penghao@zte.com.cn
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c