Thread (8 messages) 8 messages, 5 authors, 2022-02-02

Re: [PATCH] rtlwifi: remove redundant initialization of variable ul_encalgo

From: Dan Carpenter <hidden>
Date: 2022-02-02 05:03:11
Also in: kernel-janitors, linux-wireless, lkml

On Mon, Jan 31, 2022 at 02:53:40AM +0000, Pkshih wrote:
quoted hunk ↗ jump to hunk
On Sun, 2022-01-30 at 22:37 +0000, Colin Ian King wrote:

When I check this patch, I find there is no 'break' for default case.
Do we need one? like
@@ -226,6 +226,7 @@ void rtl_cam_empty_entry(struct ieee80211_hw *hw, u8 uc_index)
                break;
        default:
                ul_encalgo = rtlpriv->cfg->maps[SEC_CAM_AES];
+               break;
No, it's not necessary.  The choice of style is up to the original
developer.

regards,
dan carpenter
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help