]> git.baikalelectronics.ru Git - kernel.git/commit
ia64: agp: Replace empty define with do while
authorCorentin Labbe <clabbe@baylibre.com>
Thu, 21 Nov 2019 08:14:45 +0000 (08:14 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 4 Dec 2019 03:36:16 +0000 (13:36 +1000)
commit1234ac1bac349e21d7467f45c99a3d2efd5c22ef
treeb902ee5d67a260b77c17f11139b51a3d1d16426f
parent5f382ee33ff384ff5932deeebfc9cb1ebeb4b9c7
ia64: agp: Replace empty define with do while

It's dangerous to use empty code define.
Furthermore it lead to the following warning:
drivers/char/agp/generic.c: In function « agp_generic_destroy_page »:
drivers/char/agp/generic.c:1266:28: attention : suggest braces around empty body in an « if » statement [-Wempty-body]

So let's replace emptyness by "do {} while(0)"

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1574324085-4338-6-git-send-email-clabbe@baylibre.com
arch/ia64/include/asm/agp.h