aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPurushottam Kushwaha <p.kushwaha@samsung.com>2015-08-21 09:56:05 (GMT)
committerJouni Malinen <j@w1.fi>2015-08-27 21:22:49 (GMT)
commit658665551c653f0445d8c2a25b032f215ff8b2d9 (patch)
tree0a2cfe3d63011c99bfd49a5bae51ba4a5edec290 /src
parent5a233fbdf083c96b4f09f64f3bf9a832a7059003 (diff)
downloadhostap-658665551c653f0445d8c2a25b032f215ff8b2d9.zip
hostap-658665551c653f0445d8c2a25b032f215ff8b2d9.tar.gz
hostap-658665551c653f0445d8c2a25b032f215ff8b2d9.tar.bz2
P2PS: Remove redundant check in for loop
Signed-off-by: Purushottam Kushwaha <p.kushwaha@samsung.com> Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/p2p/p2p.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c
index 8cf0b9c..767706c 100644
--- a/src/p2p/p2p.c
+++ b/src/p2p/p2p.c
@@ -1132,7 +1132,7 @@ static int p2ps_gen_hash(struct p2p_data *p2p, const char *str, u8 *hash)
if (adv_len >= sizeof(str_buf))
return 0;
- for (i = 0; str[i] && i < adv_len; i++) {
+ for (i = 0; i < adv_len; i++) {
if (str[i] >= 'A' && str[i] <= 'Z')
str_buf[i] = str[i] - 'A' + 'a';
else