Skip to content
Commit 1ebafd5f authored by Andrew Davis's avatar Andrew Davis Committed by Wolfram Sang
Browse files

i2c: davinci: Use struct name not type with devm_kzalloc()



This reduces chance of error if the type of "dev" changes. While here
remove extra error print out, this is not usually done for memory
allocation failures.

Signed-off-by: default avatarAndrew Davis <afd@ti.com>
Reviewed-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent c3cc5c59
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment