if (cnt_rxqbody(priv) >= (RX_DEVICE_BUFF_SIZE - 1)) {
/* in case of buffer overflow */
DPRINTK(1, "rx buffer overflow\n");
- goto error_out;
+ return;
}
rx_buffer = &priv->rx_dev.rx_dev_buff[priv->rx_dev.qtail];
ks7010_sdio_read(priv, DATA_WINDOW, &rx_buffer->data[0],
hif_align_size(size));
if (retval)
- goto error_out;
+ return;
/* length check */
if (size > 2046 || size == 0) {
if (retval)
DPRINTK(1, " error : READ_STATUS=%02X\n", read_status);
- goto error_out;
+ /* length check fail */
+ return;
}
hdr = (struct hostif_hdr *)&rx_buffer->data[0];
/* rx_event_task((void *)priv); */
tasklet_schedule(&priv->ks_wlan_hw.rx_bh_task);
-
- error_out:
- return;
}
static void ks7010_rw_function(struct work_struct *work)
{
struct ks_wlan_private *priv =
(struct ks_wlan_private *)netdev_priv(dev);
- int rc = -EINPROGRESS; /* Call commit handler */
if (priv->sleep_mode == SLP_SLEEP)
return -EPERM;
}
/* Setting by channel number */
if ((fwrq->m > 1000) || (fwrq->e > 0)) {
- rc = -EOPNOTSUPP;
+ return -EOPNOTSUPP;
} else {
int channel = fwrq->m;
/* We should do a better check than that,
netdev_dbg(dev,
"%s: New channel value of %d is invalid!\n",
dev->name, fwrq->m);
- rc = -EINVAL;
+ return -EINVAL;
} else {
/* Yes ! We can set it !!! */
priv->reg.channel = (u8)(channel);
}
}
- return rc;
+ return -EINPROGRESS; /* Call commit handler */
}
static int ks_wlan_get_freq(struct net_device *dev,