fanghuilin / rpms / kernel

Forked from rpms/kernel 3 years ago
Clone
Pablo Greco 81a88a
From 596f13e776e5dee3e1e5b751b0000049c47ff08f Mon Sep 17 00:00:00 2001
Pablo Greco 81a88a
From: Fedora Kernel Team <kernel-team@fedoraproject.org>
Pablo Greco 81a88a
Date: Fri, 29 Nov 2019 14:49:00 +0000
Pablo Greco 81a88a
Subject: [PATCH] Fix mt7615
Pablo Greco 81a88a
Pablo Greco 81a88a
---
Pablo Greco 81a88a
 drivers/net/wireless/mediatek/mt76/mt7615/mac.c | 5 +----
Pablo Greco 81a88a
 1 file changed, 1 insertion(+), 4 deletions(-)
Pablo Greco 81a88a
Pablo Greco 81a88a
diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mac.c b/drivers/net/wireless/mediatek/mt76/mt7615/mac.c
Pablo Greco 81a88a
index e07ce2c..6b39184 100644
Pablo Greco 81a88a
--- a/drivers/net/wireless/mediatek/mt76/mt7615/mac.c
Pablo Greco 81a88a
+++ b/drivers/net/wireless/mediatek/mt76/mt7615/mac.c
Pablo Greco 81a88a
@@ -13,10 +13,7 @@
Pablo Greco 81a88a
 #include "../dma.h"
Pablo Greco 81a88a
 #include "mac.h"
Pablo Greco 81a88a
 
Pablo Greco 81a88a
-static inline s8 to_rssi(u32 field, u32 rxv)
Pablo Greco 81a88a
-{
Pablo Greco 81a88a
-	return (FIELD_GET(field, rxv) - 220) / 2;
Pablo Greco 81a88a
-}
Pablo Greco 81a88a
+#define to_rssi(field, rxv) 	((FIELD_GET(field, rxv) - 220) / 2)
Pablo Greco 81a88a
 
Pablo Greco 81a88a
 static struct mt76_wcid *mt7615_rx_get_wcid(struct mt7615_dev *dev,
Pablo Greco 81a88a
 					    u8 idx, bool unicast)
Pablo Greco 81a88a
-- 
Pablo Greco 81a88a
1.8.3.1
Pablo Greco 81a88a