rtlwifi: rtl8192ce: Handle unused switch case
authorLarry Finger <Larry.Finger@lwfinger.net>
Wed, 5 Mar 2014 23:25:59 +0000 (17:25 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 6 Mar 2014 19:29:57 +0000 (14:29 -0500)
This patch prevents log spamming by adding a case for a previously
unhandled case.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/rtl8192ce/hw.c

index c6a38201ac81377994cb4b864548cab451d3bfce..4ae51d5b436fb156329f0fd269ad2339de81e6d4 100644 (file)
@@ -542,9 +542,11 @@ void rtl92ce_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
                                                (u8 *)(&fw_current_inps));
                        }
                break; }
+       case HW_VAR_KEEP_ALIVE:
+               break;
        default:
                RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
-                        "switch case not processed\n");
+                        "switch case %d not processed\n", variable);
                break;
        }
 }