This patch fixes core dump issue when entering safe mode with a wrong package file. This patch also fixes build failure issue.
Fixes: 5ad3db8d4bdd ("net/ice: enable advanced RSS") Signed-off-by: Simei Su <simei...@intel.com> --- drivers/net/ice/ice_hash.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ice/ice_hash.c b/drivers/net/ice/ice_hash.c index 3381b45..08b2502 100644 --- a/drivers/net/ice/ice_hash.c +++ b/drivers/net/ice/ice_hash.c @@ -236,12 +236,12 @@ struct ice_hash_match_type ice_hash_type_list[] = { static int ice_hash_init(struct ice_adapter *ad) { - struct ice_flow_parser *parser = NULL; + struct ice_flow_parser *parser; - if (ad->active_pkg_type == ICE_PKG_TYPE_OS_DEFAULT) - parser = &ice_hash_parser_os; - else if (ad->active_pkg_type == ICE_PKG_TYPE_COMMS) + if (ad->active_pkg_type == ICE_PKG_TYPE_COMMS) parser = &ice_hash_parser_comms; + else + parser = &ice_hash_parser_os; return ice_register_parser(parser, ad); } -- 1.8.3.1