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)
commita33b375ab5b3a9897a0ab76be8258d9f6b748628
treebeb79c980912ea37700334e8a7f5d3f99c4e1fe8
parent9cb83d4be0b9b697eae93d321e0da999f9cdfcfc
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>
net/mac80211/driver-ops.h