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: Bruce Allan <bruce.w.allan@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user