summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ufs/ufs.h
diff options
context:
space:
mode:
authorAvri Altman <avri.altman@wdc.com>2018-11-22 19:04:56 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2018-12-08 03:33:25 +0100
commit09a5a24ff36f906baaa51338829acca6bd8438f8 (patch)
tree4b87b6facee06c99aeb8e2da8c542587cc8cad8a /drivers/scsi/ufs/ufs.h
parentscsi: snic: Use vzalloc (diff)
downloadlinux-09a5a24ff36f906baaa51338829acca6bd8438f8.tar.xz
linux-09a5a24ff36f906baaa51338829acca6bd8438f8.zip
scsi: ufs: Remove redundant sense size definition
By spec, the ufs sense data is 18 bytes long. Signed-off-by: Avri Altman <avri.altman@wdc.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/ufs/ufs.h')
-rw-r--r--drivers/scsi/ufs/ufs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/ufs/ufs.h b/drivers/scsi/ufs/ufs.h
index 8e4e52663a69..dd65fea07687 100644
--- a/drivers/scsi/ufs/ufs.h
+++ b/drivers/scsi/ufs/ufs.h
@@ -46,7 +46,7 @@
#define QUERY_DESC_HDR_SIZE 2
#define QUERY_OSF_SIZE (GENERAL_UPIU_REQUEST_SIZE - \
(sizeof(struct utp_upiu_header)))
-#define RESPONSE_UPIU_SENSE_DATA_LENGTH 18
+#define UFS_SENSE_SIZE 18
#define UPIU_HEADER_DWORD(byte3, byte2, byte1, byte0)\
cpu_to_be32((byte3 << 24) | (byte2 << 16) |\
@@ -458,7 +458,7 @@ struct utp_cmd_rsp {
__be32 residual_transfer_count;
__be32 reserved[4];
__be16 sense_data_len;
- u8 sense_data[RESPONSE_UPIU_SENSE_DATA_LENGTH];
+ u8 sense_data[UFS_SENSE_SIZE];
};
/**