Fix Dead Store (Dead increment) found by Clang Analyzer
--- src/common/binding/ieee80211/ieee80211.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
This commit is contained in:
parent
49f7ba41df
commit
4d1b60a6c1
@ -624,7 +624,7 @@ int ieee80211_create_probe_response(uint8_t* buffer, int length, struct ieee8021
|
||||
return -1;
|
||||
}
|
||||
|
||||
pos += result;
|
||||
/*pos += result;*/ /* Comment for disable Dead inscrement Clang Analyzer warning */
|
||||
responselength += result;
|
||||
|
||||
return responselength;
|
||||
@ -701,7 +701,7 @@ int ieee80211_create_associationresponse_response(uint8_t* buffer, int length, s
|
||||
return -1;
|
||||
}
|
||||
|
||||
pos += result;
|
||||
/*pos += result;*/ /* Comment for disable Dead inscrement Clang Analyzer warning */
|
||||
responselength += result;
|
||||
|
||||
return responselength;
|
||||
|
Loading…
Reference in New Issue
Block a user