提交 cae9a7be 编写于 作者: S Sam Hansen 提交者: Greg Kroah-Hartman

staging: xgifb: checkpatch cleanup braces

Cleaned up XGI_main_26.c and removed some unneeded braces to keep with code
conventions.
Signed-off-by: NSam Hansen <solid.se7en@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 96c66042
...@@ -2029,13 +2029,12 @@ static int __devinit xgifb_probe(struct pci_dev *pdev, ...@@ -2029,13 +2029,12 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,
xgifb_info->hasVB = HASVB_NONE; xgifb_info->hasVB = HASVB_NONE;
} else if (xgifb_info->chip == XG21) { } else if (xgifb_info->chip == XG21) {
CR38 = xgifb_reg_get(XGICR, 0x38); CR38 = xgifb_reg_get(XGICR, 0x38);
if ((CR38&0xE0) == 0xC0) { if ((CR38&0xE0) == 0xC0)
xgifb_info->display2 = XGIFB_DISP_LCD; xgifb_info->display2 = XGIFB_DISP_LCD;
} else if ((CR38&0xE0) == 0x60) { else if ((CR38&0xE0) == 0x60)
xgifb_info->hasVB = HASVB_CHRONTEL; xgifb_info->hasVB = HASVB_CHRONTEL;
} else { else
xgifb_info->hasVB = HASVB_NONE; xgifb_info->hasVB = HASVB_NONE;
}
} else { } else {
XGIfb_get_VB_type(xgifb_info); XGIfb_get_VB_type(xgifb_info);
} }
...@@ -2139,9 +2138,6 @@ static int __devinit xgifb_probe(struct pci_dev *pdev, ...@@ -2139,9 +2138,6 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,
if (tmp & 0x20) { if (tmp & 0x20) {
tmp = xgifb_reg_get( tmp = xgifb_reg_get(
XGIPART1, 0x13); XGIPART1, 0x13);
if (tmp & 0x04) {
/* XGI_Pr.XGI_UseLCDA = 1; */
}
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册