From 225f1eaed00255bf25351d1749bfd23e0ff4ce7c Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Fri, 18 Oct 2013 11:44:09 +0300 Subject: [PATCH] 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-format-patch failed