Skip to content

Commit 7824596

Browse files
committed
Adjust coding style
1 parent a580f4a commit 7824596

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

vwifi.c

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ struct vwifi_vif {
155155

156156
/* Packet virtio header size */
157157
u8 vnet_hdr_len;
158-
158+
159159
/* Transmit power */
160160
s32 tx_power;
161161
};
@@ -1844,25 +1844,28 @@ static int vwifi_delete_interface(struct vwifi_vif *vif)
18441844
}
18451845

18461846
/* Set transmit power for the virtual interface */
1847-
static int vwifi_set_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev,
1848-
enum nl80211_tx_power_setting type, int mbm)
1847+
static int vwifi_set_tx_power(struct wiphy *wiphy,
1848+
struct wireless_dev *wdev,
1849+
enum nl80211_tx_power_setting type,
1850+
int mbm)
18491851
{
18501852
struct vwifi_vif *vif = wdev_get_vwifi_vif(wdev);
18511853
if (mutex_lock_interruptible(&vif->lock))
18521854
return -ERESTARTSYS;
18531855
/* 1 DBM = 100 MBM */
1854-
vif->tx_power = MBM_TO_DBM(mbm);
1855-
mutex_unlock(&vif->lock);
1856-
return 0;
1856+
vif->tx_power = MBM_TO_DBM(mbm);
1857+
mutex_unlock(&vif->lock);
1858+
return 0;
18571859
}
18581860

18591861
/* Get transmit power from the virtual interface */
1860-
static int vwifi_get_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev,
1861-
int *dbm)
1862-
{
1863-
struct vwifi_vif *vif = wdev_get_vwifi_vif(wdev);
1862+
static int vwifi_get_tx_power(struct wiphy *wiphy,
1863+
struct wireless_dev *wdev,
1864+
int *dbm)
1865+
{
1866+
struct vwifi_vif *vif = wdev_get_vwifi_vif(wdev);
18641867
*dbm = vif->tx_power;
1865-
return 0;
1868+
return 0;
18661869
}
18671870

18681871
/* Structure of functions for FullMAC 80211 drivers. Functions implemented

0 commit comments

Comments
 (0)