Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: sm750fb: remove '#ifdef CAP_EXP*' conditionals

There are several occurencies of '#ifdef CAP_EXP<something>', spelled
differently each time. None of these is ever defined and therefore they
enclose dead code that can be removed.

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Mike Rapoport and committed by
Greg Kroah-Hartman
823e034c e359b6a8

-18
-18
drivers/staging/sm750fb/sm750.c
··· 929 929 static void sm750fb_setup(struct sm750_dev *sm750_dev, char *src) 930 930 { 931 931 char *opt; 932 - #ifdef CAP_EXPENSION 933 - char *exp_res; 934 - #endif 935 932 int swap; 936 933 937 - #ifdef CAP_EXPENSIION 938 - exp_res = NULL; 939 - #endif 940 934 swap = 0; 941 935 942 936 sm750_dev->initParm.chip_clk = 0; ··· 962 968 sm750_dev->pnltype = sm750_dualTFT; 963 969 else if (!strncmp(opt, "24bit", strlen("24bit"))) 964 970 sm750_dev->pnltype = sm750_24TFT; 965 - #ifdef CAP_EXPANSION 966 - else if (!strncmp(opt, "exp:", strlen("exp:"))) 967 - exp_res = opt + strlen("exp:"); 968 - #endif 969 971 else if (!strncmp(opt, "nohwc0", strlen("nohwc0"))) 970 972 g_hwcursor &= ~0x1; 971 973 else if (!strncmp(opt, "nohwc1", strlen("nohwc1"))) ··· 980 990 } 981 991 } 982 992 } 983 - #ifdef CAP_EXPANSION 984 - if (getExpRes(exp_res, 985 - &sm750_dev->xLCD, 986 - &sm750_dev->yLCD)) { 987 - /* seems exp_res is not valid */ 988 - sm750_dev->xLCD = sm750_dev->yLCD = 0; 989 - } 990 - #endif 991 993 992 994 NO_PARAM: 993 995 if (sm750_dev->revid != SM750LE_REVISION_ID) {