Re: [PATCH v3 5/8] staging: rtl8192e: Fix unbalanced braces
From: Dan Carpenter
Date: Wed Mar 15 2017 - 06:25:14 EST
On Wed, Mar 15, 2017 at 03:21:54PM +0530, sunil.m@xxxxxxxxxxxx wrote:
> @@ -2294,17 +2294,20 @@ static int _rtl92e_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
>
> if (ipw->cmd == IEEE_CMD_SET_ENCRYPTION) {
> if (ipw->u.crypt.set_tx) {
> - if (strcmp(ipw->u.crypt.alg, "CCMP") == 0)
> + if (strcmp(ipw->u.crypt.alg, "CCMP") == 0) {
> ieee->pairwise_key_type = KEY_TYPE_CCMP;
> - else if (strcmp(ipw->u.crypt.alg, "TKIP") == 0)
> + } else if (strcmp(ipw->u.crypt.alg,
> + "TKIP") == 0) {
This is higgledy piggledy. The original was better.
regards,
dan carpenter