summaryrefslogtreecommitdiff
path: root/drivers/staging/wlags49_h2
diff options
context:
space:
mode:
authorJohan Meiring <johanmeiring@gmail.com>2012-11-30 18:58:52 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-07 11:03:43 -0800
commit7f622485ee768715719058b5ee9a84434cbc02f7 (patch)
treebc29103dc351f1e41cecd4b891fa9ba809d06b94 /drivers/staging/wlags49_h2
parentac6cf1b8e427068860cf4903215b2e9296e7c981 (diff)
staging: wlags49_h2: wl_priv: fixes brace placement
This commit fixes incorrect brace placements in the file, as indicated by the checkpatch.pl tool. Signed-off-by: Johan Meiring <johanmeiring@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wlags49_h2')
-rw-r--r--drivers/staging/wlags49_h2/wl_priv.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/staging/wlags49_h2/wl_priv.c b/drivers/staging/wlags49_h2/wl_priv.c
index 093e1eaa925e..b49ef87468a7 100644
--- a/drivers/staging/wlags49_h2/wl_priv.c
+++ b/drivers/staging/wlags49_h2/wl_priv.c
@@ -1158,9 +1158,8 @@ int wvlan_uil_put_info(struct uilreq *urq, struct wl_private *lp)
break;
}
- if (ltvAllocated) {
+ if (ltvAllocated)
kfree(pLtv);
- }
} else {
urq->result = UIL_FAILURE;
}
@@ -1490,9 +1489,8 @@ int wvlan_uil_get_info(struct uilreq *urq, struct wl_private *lp)
case CFG_CFI_ACT_RANGES_STA:
case CFG_CUR_SCALE_THRH:
case CFG_AUTHENTICATION_ALGORITHMS:
- for (i = 0; i < (lp->ltvRecord.len - 1); i++) {
+ for (i = 0; i < (lp->ltvRecord.len - 1); i++)
lp->ltvRecord.u.u16[i] = CNV_INT_TO_LITTLE(lp->ltvRecord.u.u16[i]);
- }
break;
/* done at init time, and endian handled then */
case CFG_PRI_IDENTITY:
@@ -1515,10 +1513,8 @@ int wvlan_uil_get_info(struct uilreq *urq, struct wl_private *lp)
// Copy the LTV into the user's buffer.
copy_to_user(urq->data, &(lp->ltvRecord), urq->len);
- if (ltvAllocated) {
+ if (ltvAllocated)
kfree(&(lp->ltvRecord));
- }
-
urq->result = UIL_SUCCESS;
} else {
urq->result = UIL_FAILURE;