projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[SCSI] drivers/scsi: Use ARRAY_SIZE macro
[linux-block.git]
/
drivers
/
scsi
/
scsi_lib.c
diff --git
a/drivers/scsi/scsi_lib.c
b/drivers/scsi/scsi_lib.c
index 68d413c444f9d016d807a0df67ecddc92747c244..3ca7b9d3086c0d4de4c49ec4137db2b954ad0730 100644
(file)
--- a/
drivers/scsi/scsi_lib.c
+++ b/
drivers/scsi/scsi_lib.c
@@
-30,7
+30,7
@@
#include "scsi_logging.h"
-#define SG_MEMPOOL_NR
(sizeof(scsi_sg_pools)/sizeof(struct scsi_host_sg_pool)
)
+#define SG_MEMPOOL_NR
ARRAY_SIZE(scsi_sg_pools
)
#define SG_MEMPOOL_SIZE 32
struct scsi_host_sg_pool {