mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 19:13:47 +02:00
usb: typec: mux: Remove the use of dev_err_probe()
The dev_err_probe() doesn't do anything when error is '-ENOMEM'. Therefore, remove the useless call to dev_err_probe(), and just return the value instead. Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com> Reviewed-by: Romain Gantois <romain.gantois@bootlin.com> Link: https://lore.kernel.org/r/20250819112451.587817-1-zhao.xichao@vivo.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1f43a3401d
commit
d15fbd3ea7
|
|
@ -129,7 +129,7 @@ static int tusb1046_i2c_probe(struct i2c_client *client)
|
|||
|
||||
priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
|
||||
if (!priv)
|
||||
return dev_err_probe(dev, -ENOMEM, "failed to allocate driver data\n");
|
||||
return -ENOMEM;
|
||||
|
||||
priv->client = client;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user