mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-15 07:36:44 +07:00
staging: ks7010: Delete a variable in write_to_device()
The local variable "rc" was assigned a zero at one place. But it was not read within this function. Thus delete it. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Reviewed-by: Wolfram Sang <wsa@the-dreams.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
eeed92c0c0
commit
695872eae5
@ -297,11 +297,10 @@ static int enqueue_txdev(struct ks_wlan_private *priv, unsigned char *p,
|
||||
static int write_to_device(struct ks_wlan_private *priv, unsigned char *buffer,
|
||||
unsigned long size)
|
||||
{
|
||||
int rc, retval;
|
||||
int retval;
|
||||
unsigned char rw_data;
|
||||
struct hostif_hdr *hdr;
|
||||
hdr = (struct hostif_hdr *)buffer;
|
||||
rc = 0;
|
||||
|
||||
DPRINTK(4, "size=%d\n", hdr->size);
|
||||
if (hdr->event < HIF_DATA_REQ || HIF_REQ_MAX < hdr->event) {
|
||||
|
Loading…
Reference in New Issue
Block a user