[SCSI] scsi_lib.c: use BUILD_BUG_ON
authorAlexey Dobriyan <adobriyan@gmail.com>
Sun, 8 Oct 2006 11:55:55 +0000 (15:55 +0400)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Wed, 25 Oct 2006 22:12:29 +0000 (15:12 -0700)
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_lib.c

index 743f67ed76400e1433d8f4bbd00d2bf91bd8fbca..d2c02df12fdcb8b6b072a7a7e57500b21263a3d6 100644 (file)
@@ -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)