Skip to content

Commit 12fe29e

Browse files
committed
Merge tag 'staging-6.1-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
Pull staging driver fix from Greg KH: "Here is a single staging driver fix for 6.1-rc6. It resolves a bogus signed character test as pointed out, and fixed by, Jason in the rtl8192e driver It has been in linux-next for a few weeks now with no reported problems" * tag 'staging-6.1-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: staging: rtl8192e: remove bogus ssid character sign test
2 parents 0938935 + 937ec9f commit 12fe29e

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

drivers/staging/rtl8192e/rtllib_softmac_wx.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ int rtllib_wx_set_essid(struct rtllib_device *ieee,
439439
union iwreq_data *wrqu, char *extra)
440440
{
441441

442-
int ret = 0, len, i;
442+
int ret = 0, len;
443443
short proto_started;
444444
unsigned long flags;
445445

@@ -455,13 +455,6 @@ int rtllib_wx_set_essid(struct rtllib_device *ieee,
455455
goto out;
456456
}
457457

458-
for (i = 0; i < len; i++) {
459-
if (extra[i] < 0) {
460-
ret = -1;
461-
goto out;
462-
}
463-
}
464-
465458
if (proto_started)
466459
rtllib_stop_protocol(ieee, true);
467460

0 commit comments

Comments
 (0)