]> git.baikalelectronics.ru Git - kernel.git/commit
s390/irq: use assignment instead of cast
authorHeiko Carstens <hca@linux.ibm.com>
Sun, 6 Mar 2022 10:11:05 +0000 (11:11 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 7 Mar 2022 23:33:01 +0000 (00:33 +0100)
commitcbd59a8bbff406befa80c731c8c27023be2833fe
treed84a7e17a85a1cff350d8970011644a48f51de3a
parentf884950b5d8f24eea97c12ffb6bb737bb6eaa20e
s390/irq: use assignment instead of cast

Change struct ext_code to contain a union which allows to simply
assign the int_code instead of using a cast.

In order to keep the patch small the anonymous union is embedded
within the existing struct instead of changing the struct ext_code to
a union.

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/irq.h
arch/s390/kernel/irq.c