isdn/capi: don't return NULL from capi_cmd2str()
authorTilman Schmidt <tilman@imap.cc>
Sat, 11 Oct 2014 11:46:30 +0000 (13:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Oct 2014 19:05:35 +0000 (15:05 -0400)
commit340184b35ac8786bdb574d2c8ce8e4f1269ec4da
tree476198dccf63ead3c26d49ce496c429e24d4a0bf
parent2bf3a09ea51f807d78d48d0ebc591b9e1502a743
isdn/capi: don't return NULL from capi_cmd2str()

capi_cmd2str() is used in many places to build log messages.
None of them is prepared to handle NULL as a result.
Change the function to return printable string "INVALID_COMMAND"
instead.

Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/capi/capiutil.c