scsi: core: Clean up SG_NONE
Remove SG_NONE and a related misleading comment. Update documentation. This patch does not affect behaviour as zero initialization is redundant. Cc: Jonathan Corbet <corbet@lwn.net> Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Cc: Jens Axboe <axboe@kernel.dk> Cc: Viresh Kumar <vireshk@kernel.org> Cc: Oliver Neukum <oneukum@suse.com> Cc: Alan Stern <stern@rowland.harvard.edu> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: usb-storage@lists.one-eyed-alien.net Link: https://lore.kernel.org/r/b4779b7a6563f6bd8d259ee457871c1c463c420e.1572656814.git.fthain@telegraphics.com.au Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:

committed by
Martin K. Petersen

parent
79172ab20b
commit
35c3363363
@@ -23,19 +23,6 @@ struct scsi_host_cmd_pool;
|
||||
struct scsi_transport_template;
|
||||
|
||||
|
||||
/*
|
||||
* The various choices mean:
|
||||
* NONE: Self evident. Host adapter is not capable of scatter-gather.
|
||||
* ALL: Means that the host adapter module can do scatter-gather,
|
||||
* and that there is no limit to the size of the table to which
|
||||
* we scatter/gather data. The value we set here is the maximum
|
||||
* single element sglist. To use chained sglists, the adapter
|
||||
* has to set a value beyond ALL (and correctly use the chain
|
||||
* handling API.
|
||||
* Anything else: Indicates the maximum number of chains that can be
|
||||
* used in one scatter-gather request.
|
||||
*/
|
||||
#define SG_NONE 0
|
||||
#define SG_ALL SG_CHUNK_SIZE
|
||||
|
||||
#define MODE_UNKNOWN 0x00
|
||||
|
Reference in New Issue
Block a user