i40e: Fix sparse error: uninitialized symbol 'ring'
authorArkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Fri, 26 Mar 2021 18:43:41 +0000 (19:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Apr 2021 06:42:01 +0000 (08:42 +0200)
commit12e1438a0946434906303b3682d363e0d0efc3a2
tree7f1e1e5554cb9783db5af11df6f87626b68954ea
parent2472ba1c46b4c33b4010042a3e83a46ea59915b1
i40e: Fix sparse error: uninitialized symbol 'ring'

commit d6d04ee6d2c9bb5084c8f6074195d6aa0024e825 upstream.

Init pointer with NULL in default switch case statement.

Previously the error was produced when compiling against sparse.
i40e_debugfs.c:582 i40e_dbg_dump_desc() error: uninitialized symbol 'ring'.

Fixes: 44ea803e2fa7 ("i40e: introduce new dump desc XDP command")
Signed-off-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Tested-by: Dave Switzer <david.switzer@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/intel/i40e/i40e_debugfs.c