]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commitdiff
wifi: mac80211: fix incorrect type for ret
authorLiao Yuanhong <liaoyuanhong@vivo.com>
Mon, 25 Aug 2025 02:29:11 +0000 (10:29 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 26 Aug 2025 11:46:48 +0000 (13:46 +0200)
The variable ret is declared as a u32 type, but it is assigned a value
of -EOPNOTSUPP. Since unsigned types cannot correctly represent negative
values, the type of ret should be changed to int.

Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com>
Link: https://patch.msgid.link/20250825022911.139377-1-liaoyuanhong@vivo.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/driver-ops.h

index 181bcb34b795fca344be5d7c61fa25855d95545d..55105d238d6bc5963eb2863575805bee72c42399 100644 (file)
@@ -1416,7 +1416,7 @@ drv_get_ftm_responder_stats(struct ieee80211_local *local,
                            struct ieee80211_sub_if_data *sdata,
                            struct cfg80211_ftm_responder_stats *ftm_stats)
 {
-       u32 ret = -EOPNOTSUPP;
+       int ret = -EOPNOTSUPP;
 
        might_sleep();
        lockdep_assert_wiphy(local->hw.wiphy);