Skip to content
Commit 99b80e97 authored by Dan Carpenter's avatar Dan Carpenter Committed by Jeff Garzik
Browse files

sata_mv: silence an uninitialized variable warning



Gcc version 4.6.2-12 complains that if we can't find the "nr-ports"
property in of_property_read_u32_array() then "n_ports" is used
uninitialized.  Let's set it to zero in that case.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 96d5d96a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment