Skip to contentSkip to conversation

Staging: xgifb: vb_setmode.c: Remove unnecessary parentheses.

PATCH New Srishti Sharma 1 participant 1 message Sep 5, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: xgifb: vb_setmode.c: Remove unnecessary parentheses.

Fixed warning produced by checkpatch.pl to remove unecessary parentheses

---
 drivers/staging/xgifb/vb_setmode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/xgifb/vb_setmode.c +1 -1
index cea128b..1594c9a 100644
@@ -780,7 +780,7 @@ static void XGI_SetCRT1Offset(unsigned short ModeNo,
 		break;
 	}
 
-	if ((ModeNo >= 0x26) && (ModeNo <= 0x28))
+	if (ModeNo >= 0x26 && ModeNo <= 0x28)
 		temp = temp * temp2 + temp2 / 2;
 	else
 		temp *= temp2;

--
2.7.4