net/ice/base: resolve static analysis issues
net/ice/base: resolve static analysis issues

Coverity complains first_free can be -1 resulting in a negative shift left
when k equals 0; i.e. the expression 1 << (first_free - k). Fix this by
explicitly checking for this case.

Cc: stable@dpdk.org

Signed-off-by: Dan Nowlin <f798bfdca3b57468eeb680e07665ba0b8339fb57@intel.com>
Signed-off-by: Paul M Stillwell Jr <e9d07c711ed532f6e96975f8a0cb18bd224808b8@intel.com>
Signed-off-by: Qi Zhang <9e9e58ffa71a29bb7b87766b362515be648fcbe0@intel.com>
Acked-by: Xiaolong Ye <c7d6fc2f7e22da80deb234d523238b510a8c0f08@intel.com>

john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk