projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a233fb
)
P2PS: Remove redundant check in for loop
author
Purushottam Kushwaha
<p.kushwaha@samsung.com>
Fri, 21 Aug 2015 09:56:05 +0000
(09:56 +0000)
committer
Jouni Malinen
<j@w1.fi>
Thu, 27 Aug 2015 21:22:49 +0000
(
00:22
+0300)
Signed-off-by: Purushottam Kushwaha <p.kushwaha@samsung.com>
Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
src/p2p/p2p.c
patch
|
blob
|
history
diff --git
a/src/p2p/p2p.c
b/src/p2p/p2p.c
index
8cf0b9c
..
767706c
100644
(file)
--- 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