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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.
	 */
	status = ice_read_flat_nvm(hw, offset * sizeof(u16), &bytes,
				   (u8 *)&data_local, true);
				   (__force u8 *)&data_local, true);
	if (status)
		return status;