Commit 7db73c8c authored by Oscar Carter's avatar Oscar Carter Committed by Greg Kroah-Hartman

staging: vt6656: Remove unnecessary local variables initialization

Don't initialize variables that are then set a few lines later.
Signed-off-by: default avatarOscar Carter <oscar.carter@gmx.com>
Reviewed-by: default avatarQuentin Deslandes <quentin.deslandes@itdev.co.uk>
Link: https://lore.kernel.org/r/20200301135028.11753-1-oscar.carter@gmx.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3c505f50
...@@ -106,7 +106,7 @@ static void vnt_set_options(struct vnt_private *priv) ...@@ -106,7 +106,7 @@ static void vnt_set_options(struct vnt_private *priv)
*/ */
static int vnt_init_registers(struct vnt_private *priv) static int vnt_init_registers(struct vnt_private *priv)
{ {
int ret = 0; int ret;
struct vnt_cmd_card_init *init_cmd = &priv->init_command; struct vnt_cmd_card_init *init_cmd = &priv->init_command;
struct vnt_rsp_card_init *init_rsp = &priv->init_response; struct vnt_rsp_card_init *init_rsp = &priv->init_response;
u8 antenna; u8 antenna;
...@@ -429,7 +429,7 @@ static void vnt_free_int_bufs(struct vnt_private *priv) ...@@ -429,7 +429,7 @@ static void vnt_free_int_bufs(struct vnt_private *priv)
static int vnt_alloc_bufs(struct vnt_private *priv) static int vnt_alloc_bufs(struct vnt_private *priv)
{ {
int ret = 0; int ret;
struct vnt_usb_send_context *tx_context; struct vnt_usb_send_context *tx_context;
struct vnt_rcb *rcb; struct vnt_rcb *rcb;
int ii; int ii;
...@@ -522,7 +522,7 @@ static void vnt_tx_80211(struct ieee80211_hw *hw, ...@@ -522,7 +522,7 @@ static void vnt_tx_80211(struct ieee80211_hw *hw,
static int vnt_start(struct ieee80211_hw *hw) static int vnt_start(struct ieee80211_hw *hw)
{ {
int ret = 0; int ret;
struct vnt_private *priv = hw->priv; struct vnt_private *priv = hw->priv;
priv->rx_buf_sz = MAX_TOTAL_SIZE_WITH_ALL_HEADERS; priv->rx_buf_sz = MAX_TOTAL_SIZE_WITH_ALL_HEADERS;
...@@ -792,7 +792,7 @@ static u64 vnt_prepare_multicast(struct ieee80211_hw *hw, ...@@ -792,7 +792,7 @@ static u64 vnt_prepare_multicast(struct ieee80211_hw *hw,
struct vnt_private *priv = hw->priv; struct vnt_private *priv = hw->priv;
struct netdev_hw_addr *ha; struct netdev_hw_addr *ha;
u64 mc_filter = 0; u64 mc_filter = 0;
u32 bit_nr = 0; u32 bit_nr;
netdev_hw_addr_list_for_each(ha, mc_list) { netdev_hw_addr_list_for_each(ha, mc_list) {
bit_nr = ether_crc(ETH_ALEN, ha->addr) >> 26; bit_nr = ether_crc(ETH_ALEN, ha->addr) >> 26;
...@@ -965,7 +965,7 @@ vt6656_probe(struct usb_interface *intf, const struct usb_device_id *id) ...@@ -965,7 +965,7 @@ vt6656_probe(struct usb_interface *intf, const struct usb_device_id *id)
struct vnt_private *priv; struct vnt_private *priv;
struct ieee80211_hw *hw; struct ieee80211_hw *hw;
struct wiphy *wiphy; struct wiphy *wiphy;
int rc = 0; int rc;
udev = usb_get_dev(interface_to_usbdev(intf)); udev = usb_get_dev(interface_to_usbdev(intf));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment