]> git.karo-electronics.de Git - karo-tx-linux.git/commit
s390/qdio: rework BUG's and WARN_ON's
authorJan Glauber <jang@linux.vnet.ibm.com>
Wed, 24 Oct 2012 10:38:35 +0000 (12:38 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 13 Nov 2012 10:04:45 +0000 (11:04 +0100)
commitf0f73d0a1c581d2980d61036066d85128ba72e70
treed0bae212848b7c07ac3c19ef82bfebb27ac1b2ec
parent417fa0158424cf61ba43401c671b0635f4a00307
s390/qdio: rework BUG's and WARN_ON's

Remove or replace BUG/BUG_ON where possible and convert WARN_ON
to WARN_ON_ONCE if they can occur freqeuently as pointed out by:
https://lkml.org/lkml/2012/9/27/461

Checks have been removed if:
- the error condition leads to a hardware error which gets logged
  and in most cases stops the device
- the error condition is a null pointer access
- the error condition is just pointless or already handled at
  another location

Signed-off-by: Jan Glauber <jang@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/qdio_main.c
drivers/s390/cio/qdio_setup.c
drivers/s390/cio/qdio_thinint.c