Skip to content

Commit

Permalink
[SCSI] scsi_lib.c: use BUILD_BUG_ON
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
Alexey Dobriyan authored and James Bottomley committed Oct 25, 2006
1 parent 8e394ae commit 46c43db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/scsi_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 46c43db

Please sign in to comment.