summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_lib.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2006-10-08 13:55:55 +0200
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-10-26 00:12:29 +0200
commit46c43db1eabcdc46ad9a3d711edff1d698ecd21f (patch)
treea2bdd91e253512ab7467f28e37d09d907c263192 /drivers/scsi/scsi_lib.c
parent[SCSI] fix typo in previous Scsi_Cmnd convertion in aic7xxx_old.c (diff)
downloadlinux-46c43db1eabcdc46ad9a3d711edff1d698ecd21f.tar.xz
linux-46c43db1eabcdc46ad9a3d711edff1d698ecd21f.zip
[SCSI] scsi_lib.c: use BUILD_BUG_ON
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
-rw-r--r--drivers/scsi/scsi_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index 743f67ed7640..d2c02df12fdc 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -1084,7 +1084,7 @@ static void scsi_setup_blk_pc_cmnd(struct scsi_cmnd *cmd)
{
struct request *req = cmd->request;
- BUG_ON(sizeof(req->cmd) > sizeof(cmd->cmnd));
+ BUILD_BUG_ON(sizeof(req->cmd) > sizeof(cmd->cmnd));
memcpy(cmd->cmnd, req->cmd, sizeof(cmd->cmnd));
cmd->cmd_len = req->cmd_len;
if (!req->data_len)