ipmi_si: Utilize temporary variable to hold device pointer
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 2 Apr 2021 17:43:27 +0000 (20:43 +0300)
committerCorey Minyard <cminyard@mvista.com>
Fri, 2 Apr 2021 17:53:22 +0000 (12:53 -0500)
commit96c4d0de912c6a7cfc8f7aae1aadff9467d7b996
treec90a1d5f1ae3ce14d6988e3711c3a06f8fe29d7e
parentea63a26e2b7105d3bef517d1ca893b9e666488a8
ipmi_si: Utilize temporary variable to hold device pointer

Introduce a temporary variable to hold a device pointer.
It can be utilized in the ->probe() and save a bit of LOCs.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Message-Id: <20210402174334.13466-4-andriy.shevchenko@linux.intel.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_si_platform.c