video: fbdev: sis: Drop useless call to SiS_GetResInfo()
authorSam Ravnborg <sam@ravnborg.org>
Sun, 6 Dec 2020 19:02:47 +0000 (20:02 +0100)
committerSam Ravnborg <sam@ravnborg.org>
Tue, 8 Dec 2020 17:36:52 +0000 (18:36 +0100)
commit604057e984c969cf9f45ded572823e68f4c4b825
treec025b3a9b8953a5041b9ef240ee7c8bfda72a162
parent4aca4dbcac9d8eed8a8dc15b6883270a20a84218
video: fbdev: sis: Drop useless call to SiS_GetResInfo()

Coverity reported:

    Useless call (USELESS_CALL) side_effect_free: Calling
     SiS_GetResInfo(SiS_Pr, ModeNo, ModeIdIndex) is only useful for its
    return value, which is ignored.

And this is correct - so drop the call.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Reported-by: Colin Ian King <colin.king@canonical.com>
Addresses-Coverity: ("Useless call")
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Colin Ian King <colin.king@canonical.com>
Cc: Thomas Winischhofer <thomas@winischhofer.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20201206190247.1861316-14-sam@ravnborg.org
drivers/video/fbdev/sis/init.c