USB: storage: use sg_miter_* APIs to access scsi buffer
authorMing Lei <ming.lei@canonical.com>
Tue, 26 Nov 2013 04:44:13 +0000 (12:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Dec 2013 01:56:37 +0000 (17:56 -0800)
commite5fc70d5ccc3d005bb038c0275ffdf57a34b1496
treeb08f2262ac1d0cf4ca7101496b9833abe8b5a729
parent0d6077f8b48ed2dce8f2466a76c0d574a3b4dbe9
USB: storage: use sg_miter_* APIs to access scsi buffer

We have sg_miter_* APIs for accessing scsi sg buffer, so
use them to make code clean and bug free.

Cc: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/protocol.c