tty: rpmsg: Assign returned id to a local variable
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 25 Oct 2021 13:51:44 +0000 (16:51 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Oct 2021 17:19:41 +0000 (19:19 +0200)
commit0572da285d694e945303e74b7f9084b41e02ecbd
tree5543e7463e7e2be3f9c4e6442fe20961a8bff4e3
parent6333a485062172e1c118b44585d90c1d835aec52
tty: rpmsg: Assign returned id to a local variable

Instead of putting garbage in the data structure, assign allocated id
or an error code to a temporary variable. This makes code cleaner.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20211025135148.53944-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/rpmsg_tty.c