This patch discards the variable as it is not used anywhere throughout
the kernel.
Build tested it.
Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
        case HW_VAR_MEDIA_STATUS:
        {
                enum rt_op_mode OpMode = *((enum rt_op_mode *)(val));
-               enum led_ctl_mode LedAction = LED_CTL_NO_LINK;
                u8 btMsr = rtl92e_readb(dev, MSR);
 
                btMsr &= 0xfc;
                switch (OpMode) {
                case RT_OP_MODE_INFRASTRUCTURE:
                        btMsr |= MSR_INFRA;
-                       LedAction = LED_CTL_LINK;
                        break;
 
                case RT_OP_MODE_IBSS:
 
                case RT_OP_MODE_AP:
                        btMsr |= MSR_AP;
-                       LedAction = LED_CTL_LINK;
                        break;
 
                default: