From: Dan Carpenter Date: Fri, 18 Oct 2013 08:44:09 +0000 (+0300) Subject: sata_highbank: clear whole array in highbank_initialize_phys() X-Git-Tag: v3.13-rc1~115^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=225f1eaed00255bf25351d1749bfd23e0ff4ce7c;p=pandora-kernel.git 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 Acked-by: Rob Herring Signed-off-by: Tejun Heo --- Reading git-diff-tree failed