staging: slicoss: replace memcpy_fromio with memcpy
authorRyan Swan <ryan@ryanswan.com>
Tue, 18 Oct 2016 21:26:43 +0000 (17:26 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Oct 2016 08:00:28 +0000 (10:00 +0200)
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>
drivers/staging/slicoss/slicoss.c

index 062307ad7fed679d40bc3aee4a45b7af4f8f1904..d2929b92c54f074c0c43268dba71f1d07e152ac7 100644 (file)
@@ -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: