kernel_optimize_test/net/ncsi
Gavin Shan 7ba5c003db net/ncsi: Avoid if statements in ncsi_suspend_channel()
There are several if/else statements in the state machine implemented
by switch/case in ncsi_suspend_channel() to avoid duplicated code. It
makes the code a bit hard to be understood.

This drops if/else statements in ncsi_suspend_channel() to improve the
code readability as Joel Stanley suggested. Also, it becomes easy to
add more states in the state machine without affecting current code.
No logical changes introduced by this.

Suggested-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-10-20 11:23:07 -04:00
..
internal.h net/ncsi: Rework the channel monitoring 2016-10-04 02:11:51 -04:00
Kconfig
Makefile net/ncsi: NCSI AEN packet handler 2016-07-19 20:49:17 -07:00
ncsi-aen.c net/ncsi: Avoid unused-value build warning from ia64-linux-gcc 2016-10-04 02:11:50 -04:00
ncsi-cmd.c net/ncsi: Allow to extend NCSI request properties 2016-10-04 02:11:50 -04:00
ncsi-manage.c net/ncsi: Avoid if statements in ncsi_suspend_channel() 2016-10-20 11:23:07 -04:00
ncsi-pkt.h net/ncsi: NCSI AEN packet handler 2016-07-19 20:49:17 -07:00
ncsi-rsp.c net/ncsi: Rework the channel monitoring 2016-10-04 02:11:51 -04:00