P2PS: Remove dead code
authorJouni Malinen <j@w1.fi>
Thu, 24 Dec 2015 17:00:59 +0000 (19:00 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 24 Dec 2015 17:16:15 +0000 (19:16 +0200)
commit662512e027db30b0b7a2dd4865e964d1f8812f91
tree920219b402f60e88d65bf549a87b4504c3ef138f
parent0c8eacd1ab0447813d98e52f23ee1f571fd74821
P2PS: Remove dead code

Commit f8a80e39b33212992f88ce2e638193f81664230a ('P2PS: Change
connection capability handling') added the identical P2PS_SETUP_CLIENT
check into two places within p2ps_group_capability(). However, only the
first one of these can be reached. In the second case, role can only
have values 0 or P2PS_SETUP_NEW and as such, the P2PS_SETUP_CLIENT case
is not possible. It looks like the first part of the commit is
sufficient, so remove the dead code added by the second part.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/p2p_supplicant.c