Skip to content

Commit a33b375

Browse files
Liao Yuanhongjmberg-intel
authored andcommitted
wifi: mac80211: fix incorrect type for ret
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>
1 parent 9cb83d4 commit a33b375

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/mac80211/driver-ops.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,7 @@ drv_get_ftm_responder_stats(struct ieee80211_local *local,
14161416
struct ieee80211_sub_if_data *sdata,
14171417
struct cfg80211_ftm_responder_stats *ftm_stats)
14181418
{
1419-
u32 ret = -EOPNOTSUPP;
1419+
int ret = -EOPNOTSUPP;
14201420

14211421
might_sleep();
14221422
lockdep_assert_wiphy(local->hw.wiphy);

0 commit comments

Comments
 (0)