提交 eba87e8e 编写于 作者: A Antonino A. Daplas 提交者: Linus Torvalds

[PATCH] atyfb: Remove dead code

Remove code that can never be reached.

Coverity Bug 67
Signed-off-by: NAntonino Daplas <adaplas@pol.net>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 0e4be280
...@@ -2298,6 +2298,10 @@ static int __init aty_init(struct fb_info *info, const char *name) ...@@ -2298,6 +2298,10 @@ static int __init aty_init(struct fb_info *info, const char *name)
case CLK_ATI18818_1: case CLK_ATI18818_1:
par->pll_ops = &aty_pll_ati18818_1; par->pll_ops = &aty_pll_ati18818_1;
break; break;
case CLK_IBMRGB514:
par->pll_ops = &aty_pll_ibm514;
break;
#if 0 /* dead code */
case CLK_STG1703: case CLK_STG1703:
par->pll_ops = &aty_pll_stg1703; par->pll_ops = &aty_pll_stg1703;
break; break;
...@@ -2307,9 +2311,7 @@ static int __init aty_init(struct fb_info *info, const char *name) ...@@ -2307,9 +2311,7 @@ static int __init aty_init(struct fb_info *info, const char *name)
case CLK_ATT20C408: case CLK_ATT20C408:
par->pll_ops = &aty_pll_att20c408; par->pll_ops = &aty_pll_att20c408;
break; break;
case CLK_IBMRGB514: #endif
par->pll_ops = &aty_pll_ibm514;
break;
default: default:
PRINTKI("aty_init: CLK type not implemented yet!"); PRINTKI("aty_init: CLK type not implemented yet!");
par->pll_ops = &aty_pll_unsupported; par->pll_ops = &aty_pll_unsupported;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册