aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qlogicpti.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/qlogicpti.c')
-rw-r--r--drivers/scsi/qlogicpti.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/qlogicpti.c b/drivers/scsi/qlogicpti.c
index 7c27ecc6fb5d..2203103adced 100644
--- a/drivers/scsi/qlogicpti.c
+++ b/drivers/scsi/qlogicpti.c
@@ -43,7 +43,6 @@
43#include <scsi/scsi_cmnd.h> 43#include <scsi/scsi_cmnd.h>
44#include <scsi/scsi_device.h> 44#include <scsi/scsi_device.h>
45#include <scsi/scsi_eh.h> 45#include <scsi/scsi_eh.h>
46#include <scsi/scsi_request.h>
47#include <scsi/scsi_tcq.h> 46#include <scsi/scsi_tcq.h>
48#include <scsi/scsi_host.h> 47#include <scsi/scsi_host.h>
49 48
@@ -132,7 +131,7 @@ static const u_char mbox_param[] = {
132 PACKB(0, 0) /* 0x0042 */ 131 PACKB(0, 0) /* 0x0042 */
133}; 132};
134 133
135#define MAX_MBOX_COMMAND (sizeof(mbox_param)/sizeof(u_short)) 134#define MAX_MBOX_COMMAND ARRAY_SIZE(mbox_param)
136 135
137/* queue length's _must_ be power of two: */ 136/* queue length's _must_ be power of two: */
138#define QUEUE_DEPTH(in, out, ql) ((in - out) & (ql)) 137#define QUEUE_DEPTH(in, out, ql) ((in - out) & (ql))