agp/ati: Return error from ati_create_page_map()
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 1 Dec 2021 11:46:42 +0000 (12:46 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 14 Jan 2022 14:15:45 +0000 (15:15 +0100)
commitba7e3fd19a6731747da4d213566e4239b28d3a7d
treeb98df600162e7372618adfcff367181279e94c57
parentffe9d02e4152ab653652717a1907d0058b764d58
agp/ati: Return error from ati_create_page_map()

Fix the compiler warning

  drivers/char/agp/ati-agp.c: In function 'ati_create_page_map':
  drivers/char/agp/ati-agp.c:58:16: warning: variable 'err' set but not used [-Wunused-but-set-variable]
    58 |         int i, err = 0;

by returing the error to the caller.

v2:
* free page in error branch (Helge)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Helge Deller <deller@gmx.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20211201114645.15384-5-tzimmermann@suse.de
drivers/char/agp/ati-agp.c