Skip to content

Commit

Permalink
staging: xgifb: vb_setmode: clean up a single statement if
Browse files Browse the repository at this point in the history
Eliminate the only remaining checkpatch.pl warning:

	WARNING: braces {} are not necessary for single statement blocks
	#7463: FILE: staging/xgifb/vb_setmode.c:7463:
	+       if (ModeNo & 0x80) {
	+               ModeNo = ModeNo & 0x7F;
	+       }

	total: 0 errors, 1 warnings, 0 checks, 7554 lines checked

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Aaro Koskinen authored and Greg Kroah-Hartman committed Nov 27, 2011
1 parent 798b4da commit ef497f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/staging/xgifb/vb_setmode.c
Original file line number Diff line number Diff line change
Expand Up @@ -7460,9 +7460,8 @@ unsigned char XGISetModeNew(struct xgi_hw_device_info *HwDeviceExtension,
XGI_GetVBType(pVBInfo);

InitTo330Pointer(HwDeviceExtension->jChipType, pVBInfo);
if (ModeNo & 0x80) {
if (ModeNo & 0x80)
ModeNo = ModeNo & 0x7F;
}
xgifb_reg_set(pVBInfo->P3c4, 0x05, 0x86);

if (HwDeviceExtension->jChipType < XG20) /* kuku 2004/06/25 1.Openkey */
Expand Down

0 comments on commit ef497f4

Please sign in to comment.