"...0d0cea2424ae97b27447dc64a7dbfae83c036c45b403392f0e8ba.png" did not exist on "bbfce37b3ea11d13a984063a162c898a5fb23b1e"
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>
Loading
Please register or sign in to comment