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

platform/surface: aggregator: Omit a variable reassignment in ssam_serial_hub_probe()

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/b25c9842-7ebc-43f0-a411-8098359f81a6@web.de
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>

authored by

Markus Elfring and committed by
Ilpo Järvinen
1eae7d43 45cf02f2

+1 -1
+1 -1
drivers/platform/surface/aggregator/core.c
··· 676 676 677 677 status = ssam_serdev_setup(ssh, serdev); 678 678 if (status) { 679 - status = dev_err_probe(dev, status, "failed to setup serdev\n"); 679 + dev_err_probe(dev, status, "failed to setup serdev\n"); 680 680 goto err_devinit; 681 681 } 682 682