ipmi: use ARRAY_SIZE for poweroff_functions array sizing calculation
commite8824babad2d81fcff43e02f028cc437a3f99ce5
authorColin Ian King <colin.king@canonical.com>
Fri, 2 Mar 2018 14:14:51 +0000 (2 14:14 +0000)
committerCorey Minyard <cminyard@mvista.com>
Wed, 7 Mar 2018 01:47:51 +0000 (6 19:47 -0600)
tree72433b1429cc9a86cdcb2b82a43558ab13461daf
parent71404a2f75c1456d82eda47c3a9699770dc766c9
ipmi: use ARRAY_SIZE for poweroff_functions array sizing calculation

Use the ARRAY_SIZE macro on a array poweroff_functions to determine
size of the array. Improvement suggested by Coccinelle.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_poweroff.c