net/ice/base: remove unnecessary dummy packet finding
authorQi Zhang <qi.z.zhang@intel.com>
Thu, 29 Aug 2019 02:36:45 +0000 (10:36 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 7 Oct 2019 13:00:53 +0000 (15:00 +0200)
commitdbe449e5dcfc4beee00b4986335007d10b872000
tree6504220bc904f378a9d25b2b0114585094ab53dc
parentc3d6ac02c0c308e04f1ac6b4ea4c93c892916701
net/ice/base: remove unnecessary dummy packet finding

We don't need to find a dummy packet when removing a rule so remove
the call to get the dummy packet. This also obviates some variables
so remove them also.

Also reduce the scope of rule_buf_sz.

Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ice/base/ice_switch.c