Skip to content

Commit 2f04652

Browse files
LorenzoBianconiKalle Valo
authored andcommitted
mt7601u: simplify mt7601u_mcu_msg_alloc signature
Remove mt7601u_dev parameter from mt7601u_mcu_msg_alloc signature since dev pointer is never used in routine body Signed-off-by: Lorenzo Bianconi <[email protected]> Acked-by: Jakub Kicinski <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent fbae9c7 commit 2f04652

File tree

1 file changed

+3
-4
lines changed
  • drivers/net/wireless/mediatek/mt7601u

1 file changed

+3
-4
lines changed

drivers/net/wireless/mediatek/mt7601u/mcu.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ static inline void trace_mt_mcu_msg_send_cs(struct mt7601u_dev *dev,
5858
trace_mt_mcu_msg_send(dev, skb, csum, need_resp);
5959
}
6060

61-
static struct sk_buff *
62-
mt7601u_mcu_msg_alloc(struct mt7601u_dev *dev, const void *data, int len)
61+
static struct sk_buff *mt7601u_mcu_msg_alloc(const void *data, int len)
6362
{
6463
struct sk_buff *skb;
6564

@@ -171,7 +170,7 @@ static int mt7601u_mcu_function_select(struct mt7601u_dev *dev,
171170
.value = cpu_to_le32(val),
172171
};
173172

174-
skb = mt7601u_mcu_msg_alloc(dev, &msg, sizeof(msg));
173+
skb = mt7601u_mcu_msg_alloc(&msg, sizeof(msg));
175174
if (!skb)
176175
return -ENOMEM;
177176
return mt7601u_mcu_msg_send(dev, skb, CMD_FUN_SET_OP, func == 5);
@@ -208,7 +207,7 @@ mt7601u_mcu_calibrate(struct mt7601u_dev *dev, enum mcu_calibrate cal, u32 val)
208207
.value = cpu_to_le32(val),
209208
};
210209

211-
skb = mt7601u_mcu_msg_alloc(dev, &msg, sizeof(msg));
210+
skb = mt7601u_mcu_msg_alloc(&msg, sizeof(msg));
212211
if (!skb)
213212
return -ENOMEM;
214213
return mt7601u_mcu_msg_send(dev, skb, CMD_CALIBRATION_OP, true);

0 commit comments

Comments
 (0)