Various libata documentation updates.
This is a merger of libata docs + cleanups from Martin Waitz <tali@admingilde.org> and me. From: Randy Dunlap <rdunlap@xenotime.net> From: Martin Waitz <tali@admingilde.org> Fix libata kernel-doc comments to match code. Add some function parameters to kernel-doc. Fix some typos/spellos. Put comments in <= 80 columns. Make one DPRINTK string unique. Fix sparse cast warnings. Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
This commit is contained in:
committed by
Jeff Garzik
parent
6340f01969
commit
c893a3ae49
@@ -151,7 +151,7 @@ int ata_cmd_ioctl(struct scsi_device *scsidev, void __user *arg)
|
||||
struct scsi_sense_hdr sshdr;
|
||||
enum dma_data_direction data_dir;
|
||||
|
||||
if (NULL == (void *)arg)
|
||||
if (arg == NULL)
|
||||
return -EINVAL;
|
||||
|
||||
if (copy_from_user(args, arg, sizeof(args)))
|
||||
@@ -201,7 +201,7 @@ int ata_cmd_ioctl(struct scsi_device *scsidev, void __user *arg)
|
||||
/* Need code to retrieve data from check condition? */
|
||||
|
||||
if ((argbuf)
|
||||
&& copy_to_user((void *)(arg + sizeof(args)), argbuf, argsize))
|
||||
&& copy_to_user(arg + sizeof(args), argbuf, argsize))
|
||||
rc = -EFAULT;
|
||||
error:
|
||||
if (argbuf)
|
||||
@@ -228,7 +228,7 @@ int ata_task_ioctl(struct scsi_device *scsidev, void __user *arg)
|
||||
u8 args[7];
|
||||
struct scsi_sense_hdr sshdr;
|
||||
|
||||
if (NULL == (void *)arg)
|
||||
if (arg == NULL)
|
||||
return -EINVAL;
|
||||
|
||||
if (copy_from_user(args, arg, sizeof(args)))
|
||||
@@ -2533,7 +2533,8 @@ out_unlock:
|
||||
|
||||
/**
|
||||
* ata_scsi_simulate - simulate SCSI command on ATA device
|
||||
* @id: current IDENTIFY data for target device.
|
||||
* @ap: port the device is connected to
|
||||
* @dev: the target device
|
||||
* @cmd: SCSI command being sent to device.
|
||||
* @done: SCSI command completion function.
|
||||
*
|
||||
|
Reference in New Issue
Block a user