[SCSI] aacraid: use lower snprintf() limit
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 8 Oct 2011 10:45:07 +0000 (13:45 +0300)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 20 Oct 2011 15:07:42 +0000 (10:07 -0500)
commitdc55b8274daddffefc34026ed7924138c8c5df17
tree9f87676a30da007e0546f7f689d0dcd047eb1715
parentd15fdd348313c64438a99d1324ba2eccdcf1e7e6
[SCSI] aacraid: use lower snprintf() limit

This is just a cleanup, to silence static checker warnings.  It
doesn't change how the code works.

buf[] can either be BUF_SIZE if this is called from sysfs, or it can
be 16 if it's called from aac_get_adapter_info() via
aac_get_serial_number().  We use the smaller limit here.

sizeof(dev->supplement_adapter_info.MfgPcbaSerialNo) is 12 so there
is actually no chance of hitting either limit.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Achim Leubner <Achim_Leubner@pmc-sierra.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/aacraid/linit.c