diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2007-07-27 06:29:20 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2007-07-27 06:29:20 -0400 |
commit | 303fa9e39605c1d56971dd22cd04d2186dc42c98 (patch) | |
tree | ac289a0d80136b2fb7eb6aaa7dee5e55f6cdb24a | |
parent | e556bbbd9d2ff2b158915945ac82e2ac7def4d2f (diff) |
[S390] cio: Make CIO_* macros safe if dbfs are not available.
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r-- | drivers/s390/cio/cio_debug.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/s390/cio/cio_debug.h b/drivers/s390/cio/cio_debug.h index f88844adae1b..c9bf8989930f 100644 --- a/drivers/s390/cio/cio_debug.h +++ b/drivers/s390/cio/cio_debug.h | |||
@@ -23,6 +23,8 @@ extern debug_info_t *cio_debug_crw_id; | |||
23 | static inline void | 23 | static inline void |
24 | CIO_HEX_EVENT(int level, void *data, int length) | 24 | CIO_HEX_EVENT(int level, void *data, int length) |
25 | { | 25 | { |
26 | if (unlikely(!cio_debug_trace_id)) | ||
27 | return; | ||
26 | while (length > 0) { | 28 | while (length > 0) { |
27 | debug_event(cio_debug_trace_id, level, data, length); | 29 | debug_event(cio_debug_trace_id, level, data, length); |
28 | length -= cio_debug_trace_id->buf_size; | 30 | length -= cio_debug_trace_id->buf_size; |