From: Dan Carpenter Date: Sat, 8 Oct 2011 10:45:07 +0000 (+0300) Subject: [SCSI] aacraid: use lower snprintf() limit X-Git-Tag: v3.2-rc1~125^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc55b8274daddffefc34026ed7924138c8c5df17;p=pandora-kernel.git [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 Acked-by: Achim Leubner Signed-off-by: James Bottomley --- Reading git-diff-tree failed