linux/drivers/net/ethernet/intel/ice
Anirudh Venkataramanan 4381147df9 ice: Fix multiple static analyser warnings
This patch fixes the following smatch errors:

1) Fix "odd binop '0x0 & 0xc'" when performing the bitwise-and with a
   constant value of zero (ICE_AQC_GSET_RSS_LUT_TABLE_SIZE_128_FLAG).
   Remove a similar bitwise-and with 0 in ice_add_marker_act() and use the
   right mask ICE_LG_ACT_GENERIC_OFFSET_M in the expression.

2) Fix a similar issue "odd binop '0x0 & 0x1800' in ice_req_irq_msix_misc.

3) Fix "odd binop '0x380000 & 0x7fff8'" in ice_add_marker_act(). Also, use
   a new define ICE_LG_ACT_GENERIC_OFF_RX_DESC_PROF_IDX instead of magic
   number '7'.

4) Fix warn: odd binop '0x0 & 0x18' in ice_set_dflt_vsi_ctx() by removing
   unnecessary logic to explicitly unset bits 3 and 4 in port_vlan_bits.
   These bits are unset already by the memset on ctxt->info.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2018-08-23 09:20:36 -07:00
..
ice_adminq_cmd.h ice: Fix multiple static analyser warnings 2018-08-23 09:20:36 -07:00
ice_common.c ice: Fix multiple static analyser warnings 2018-08-23 09:20:36 -07:00
ice_common.h ice: Implement filter sync, NDO operations and bump version 2018-03-26 12:41:38 -07:00
ice_controlq.c ice: Set rq_last_status when cleaning rq 2018-05-11 11:43:17 -07:00
ice_controlq.h ice: Initialize PF and setup miscellaneous interrupt 2018-03-26 10:34:49 -07:00
ice_devids.h
ice_ethtool.c ice: Bug fixes in ethtool code 2018-04-06 07:00:09 -07:00
ice_hw_autogen.h ice: Do not check INTEVENT bit for OICR interrupts 2018-04-24 09:03:23 -07:00
ice_lan_tx_rx.h ice: Implement filter sync, NDO operations and bump version 2018-03-26 12:41:38 -07:00
ice_main.c ice: Fix multiple static analyser warnings 2018-08-23 09:20:36 -07:00
ice_nvm.c ice: Update NVM AQ command functions 2018-05-17 09:14:09 -07:00
ice_osdep.h ice: Start hardware initialization 2018-03-26 09:59:08 -07:00
ice_sched.c ice: Fix initialization for num_nodes_added 2018-04-24 08:55:42 -07:00
ice_sched.h ice: Update Tx scheduler tree for VSI multi-Tx queue support 2018-03-26 12:21:42 -07:00
ice_status.h ice: Configure VSIs for Tx/Rx 2018-03-26 11:18:36 -07:00
ice_switch.c ice: Fix multiple static analyser warnings 2018-08-23 09:20:36 -07:00
ice_switch.h ice: Implement filter sync, NDO operations and bump version 2018-03-26 12:41:38 -07:00
ice_txrx.c ice: Add support for VLANs and offloads 2018-03-26 11:54:49 -07:00
ice_txrx.h ice: Add support for VLANs and offloads 2018-03-26 11:54:49 -07:00
ice_type.h ice: Implement filter sync, NDO operations and bump version 2018-03-26 12:41:38 -07:00
ice.h ice: Implement filter sync, NDO operations and bump version 2018-03-26 12:41:38 -07:00
Makefile ice: Add stats and ethtool support 2018-03-26 12:11:19 -07:00