Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

platform/x86: x86-android-tablets: Omit a variable reassignment in lenovo_yoga_tab2_830_1050_init_codec()

An error code was assigned to a variable and checked accordingly.
This value was passed to a dev_err_probe() call in an if branch.
This function is documented in the way that the same value is returned.
Thus delete a redundant variable reassignment.

The source code was transformed by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Link: https://patch.msgid.link/90a2385c-9d19-46f2-8d31-618d5c10aa91@web.de
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

authored by

Markus Elfring and committed by
Ilpo Järvinen
df92fad9 1eae7d43

+1 -1
+1 -1
drivers/platform/x86/x86-android-tablets/lenovo.c
··· 543 543 544 544 ret = device_add_software_node(codec_dev, &lenovo_yoga_tab2_830_1050_wm5102); 545 545 if (ret) { 546 - ret = dev_err_probe(codec_dev, ret, "adding software node\n"); 546 + dev_err_probe(codec_dev, ret, "adding software node\n"); 547 547 goto err_put_pinctrl; 548 548 } 549 549