diff options
author | Andrew Davis <afd@ti.com> | 2023-05-15 12:50:42 -0500 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2023-06-07 11:28:48 +0200 |
commit | 1ebafd5f5caaece1d25556cfb3a8f7fcb7629550 (patch) | |
tree | 68dfff91979591cb7b1179298b0932cdeda38e93 /drivers/i2c/busses/i2c-tiny-usb.c | |
parent | c3cc5c59cb16dbf14d8c52ac4df6650438613b5b (diff) | |
download | lwn-1ebafd5f5caaece1d25556cfb3a8f7fcb7629550.tar.gz lwn-1ebafd5f5caaece1d25556cfb3a8f7fcb7629550.zip |
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: Andrew Davis <afd@ti.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-tiny-usb.c')
0 files changed, 0 insertions, 0 deletions