commit | 99b80e97710ae2e53c951acfdd956e9f38e36646 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Sat Mar 10 12:00:05 2012 +0300 |
committer | Jeff Garzik <jgarzik@redhat.com> | Thu Apr 12 15:57:22 2012 -0400 |
tree | df0c3a4692d6d9740c1da3dcb08fc30987737332 | |
parent | 96d5d96aedc29c75bb16433f6ecf8664ec3c1b46 [diff] |
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: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>