mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 08:26:59 +00:00
media: imon: Remove the unneeded result variable
Return the value send_packet() directly instead of storing it in another redundant variable. Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
41fd1cb615
commit
2dfe2c4f17
1 changed files with 1 additions and 3 deletions
|
@ -684,7 +684,6 @@ static int send_packet(struct imon_context *ictx)
|
|||
*/
|
||||
static int send_associate_24g(struct imon_context *ictx)
|
||||
{
|
||||
int retval;
|
||||
const unsigned char packet[8] = { 0x01, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x20 };
|
||||
|
||||
|
@ -699,9 +698,8 @@ static int send_associate_24g(struct imon_context *ictx)
|
|||
}
|
||||
|
||||
memcpy(ictx->usb_tx_buf, packet, sizeof(packet));
|
||||
retval = send_packet(ictx);
|
||||
|
||||
return retval;
|
||||
return send_packet(ictx);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue