mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 12:00:22 +09:00
wifi: ray_cs: Drop useless status variable in parse_addr()
[ Upstream commit4dfc63c002] The status variable assigned only once and used also only once. Replace it's usage by actual value. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20220603164414.48436-2-andriy.shevchenko@linux.intel.com Stable-dep-of:4f8d66a9fb("wifi: ray_cs: Fix an error handling path in ray_probe()") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d696cbbe43
commit
0700d878b0
@@ -1645,7 +1645,6 @@ static int parse_addr(char *in_str, UCHAR *out)
|
||||
{
|
||||
int i, k;
|
||||
int len;
|
||||
int status;
|
||||
|
||||
if (in_str == NULL)
|
||||
return 0;
|
||||
@@ -1654,7 +1653,6 @@ static int parse_addr(char *in_str, UCHAR *out)
|
||||
return 0;
|
||||
memset(out, 0, ADDRLEN);
|
||||
|
||||
status = 1;
|
||||
i = 5;
|
||||
|
||||
while (len > 0) {
|
||||
@@ -1672,7 +1670,7 @@ static int parse_addr(char *in_str, UCHAR *out)
|
||||
if (!i--)
|
||||
break;
|
||||
}
|
||||
return status;
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*===========================================================================*/
|
||||
|
||||
Reference in New Issue
Block a user