s390/crashdump: use list_first_entry_or_null
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 12 Sep 2016 18:10:39 +0000 (03:10 +0900)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 20 Sep 2016 12:26:04 +0000 (14:26 +0200)
commitf296190e41ee1e1e6912f0ddae09b28e9cfae48d
tree581f8993cd2c41f96cac539cdb9e590c4022bd89
parent9078a54996a0989e25a04bbb9276bc340a52a673
s390/crashdump: use list_first_entry_or_null

The combo of list_empty() check and return list_first_entry()
can be replaced with list_first_entry_or_null().

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/crash_dump.c