diff options
author | Axel Lin <[email protected]> | 2013-06-30 00:33:52 +0800 |
---|---|---|
committer | Mark Brown <[email protected]> | 2013-07-01 11:16:15 +0100 |
commit | 8c7e7ddf31ca9943b70e58d1c47d059beda435bd (patch) | |
tree | efbef0c11233af5954be39e96e8b983d87938026 /net/unix/sysctl_net_unix.c | |
parent | f3ecdd7bf6a782a6eafe9c2c5d39fcb487e2a154 (diff) |
regulator: max77693: Remove NULL test for rmatch[i].init_data
The implementation in of_regulator_match() already ensures match->init_data is
not NULL for all matched cases if the return value of of_regulator_match() > 0.
Thus remove NULL test for rmatch[i].init_data.
This patch also fixes the condition for loop iteration.
The for loop should iterate "matched" times rather than ARRAY_SIZE(regulators)
because we only allocate "matched" number of entries for rdata.
Though in most cases, "matched" == ARRAY_SIZE(regulators).
Signed-off-by: Axel Lin <[email protected]>
Acked-by: Jonghwa Lee <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions