mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 22:54:05 +08:00
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
This commit is contained in:
parent
4aca4dbcac
commit
604057e984
@ -2659,7 +2659,6 @@ SiS_SetCRT1ModeRegs(struct SiS_Private *SiS_Pr, unsigned short ModeNo,
|
||||
if(SiS_Pr->UseCustomMode) {
|
||||
infoflag = SiS_Pr->CInfoFlag;
|
||||
} else {
|
||||
SiS_GetResInfo(SiS_Pr, ModeNo, ModeIdIndex);
|
||||
if(ModeNo > 0x13) {
|
||||
infoflag = SiS_Pr->SiS_RefIndex[RRTI].Ext_InfoFlag;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user