mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 19:24:01 -04:00
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: Ryan Swan <ryan@ryanswan.com> Reviewed-by: Lino Sanfilippo <LinoSanfilippo@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
7b0f8525c3
commit
36a80337d7
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user