Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36a80337 authored by Ryan Swan's avatar Ryan Swan Committed by Greg Kroah-Hartman
Browse files

staging: slicoss: replace memcpy_fromio with memcpy



As per discusion with Lino Sanfilippo, memcpy is the proper way to copy
across dma memory, which also removes sparse warning that triggered
inquiry.

Signed-off-by: default avatarRyan Swan <ryan@ryanswan.com>
Reviewed-by: default avatarLino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7b0f8525
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1057,7 +1057,7 @@ static void slic_upr_request_complete(struct adapter *adapter, u32 isr)
		if (stats->rcv_drops > old->rcv_drops)
			adapter->rcv_drops += (stats->rcv_drops -
					       old->rcv_drops);
		memcpy_fromio(old, stats, sizeof(*stats));
		memcpy(old, stats, sizeof(*stats));
		break;
	}
	case SLIC_UPR_RLSR: