[PATCH:xf86-video-xgi 15/19] Fix return value.
Thomas Klausner
wiz at NetBSD.org
Thu Aug 6 05:57:13 PDT 2015
From: Alan Barrett <apb at NetBSD.org>
In XGI_GetTVPtrIndex2(), return the correct value through *tempch
by using (*tempch)++ instead of *tempch++.
Found using clang -Wunused-value.
Signed-off-by: Thomas Klausner <wiz at NetBSD.org>
---
src/vb_setmode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/vb_setmode.c b/src/vb_setmode.c
index b0f64b1..bfcae8b 100755
--- a/src/vb_setmode.c
+++ b/src/vb_setmode.c
@@ -9502,7 +9502,7 @@ XGI_GetTVPtrIndex2(USHORT * tempbx, UCHAR * tempcl, UCHAR * tempch,
if (pVBInfo->
VBType & (VB_XGI301B | VB_XGI302B | VB_XGI301LV | VB_XGI302LV |
VB_XGI301C))
- *tempch++;
+ (*tempch)++;
}
--
2.5.0
More information about the xorg-devel
mailing list