aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ata.h
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-10-18 11:44:09 +0300
committerTejun Heo <tj@kernel.org>2013-10-27 08:11:54 -0400
commit225f1eaed00255bf25351d1749bfd23e0ff4ce7c (patch)
treedaa46b011144e5cc6bf655695e74d50916ad1e4e /include/linux/ata.h
parentahci: disabled FBS prior to issuing software reset (diff)
downloadlinux-dev-225f1eaed00255bf25351d1749bfd23e0ff4ce7c.tar.xz
linux-dev-225f1eaed00255bf25351d1749bfd23e0ff4ce7c.zip
sata_highbank: clear whole array in highbank_initialize_phys()
The original code used the wrong parameter to clear tx_atten[]. It passed the number of elements instead of sizeof() the array to memset. The other potential issue was that cphy_base[] wasn't cleared. I'm not sure if that was a real problem or not, but I have cleared it in my patch. Instead of using memset(), this patch uses empty initializers as a cleanup. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/ata.h')
0 files changed, 0 insertions, 0 deletions