Commit 34d8461a authored by Bruce Allan's avatar Bruce Allan Committed by Tony Nguyen

ice: silence static analysis warning

sparse warns about cast to/from restricted types which is not
an actual problem; silence the warning.
Signed-off-by: default avatarBruce Allan <bruce.w.allan@intel.com>
Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
parent 32e6deb2
...@@ -196,7 +196,7 @@ ice_read_sr_word_aq(struct ice_hw *hw, u16 offset, u16 *data) ...@@ -196,7 +196,7 @@ ice_read_sr_word_aq(struct ice_hw *hw, u16 offset, u16 *data)
* Shadow RAM sector restrictions necessary when reading from the NVM. * Shadow RAM sector restrictions necessary when reading from the NVM.
*/ */
status = ice_read_flat_nvm(hw, offset * sizeof(u16), &bytes, status = ice_read_flat_nvm(hw, offset * sizeof(u16), &bytes,
(u8 *)&data_local, true); (__force u8 *)&data_local, true);
if (status) if (status)
return status; return status;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment