[S390] qdio: dont cast function pointers and use them to call functions.
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 12 Oct 2007 14:11:38 +0000 (16:11 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 12 Oct 2007 14:13:07 +0000 (16:13 +0200)
commitb18a2db416088ad54a4bfb59c0b932be383aee83
tree6a5bbd0dde9552cbff5eca9f7b08d50dbe3b01ff
parent5a291321d6b7ab40923b9a42b36746f7b5ca0055
[S390] qdio: dont cast function pointers and use them to call functions.

According to C99 6.3.2.3 it's undefined what happens if a converted
pointer is used to call a function whose type is not compatible with
the pointed-to type.
That's what the qdio code is doing, so fix it.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/qdio.c