]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - include/net/mac80211.h
mac80211: warn only once about not finding a rate
[linux-2.6.git] / include / net / mac80211.h
index dc1123aa8181d08a9b91bf2fe3281577088e56d1..72eddd1b410b9c8418216c17d74910585fdec975 100644 (file)
@@ -3567,8 +3567,9 @@ rate_lowest_index(struct ieee80211_supported_band *sband,
                        return i;
 
        /* warn when we cannot find a rate. */
-       WARN_ON(1);
+       WARN_ON_ONCE(1);
 
+       /* and return 0 (the lowest index) */
        return 0;
 }