]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7641d59bbca99bfe6a69a08e028ef365e971010f
tree476198dccf63ead3c26d49ce496c429e24d4a0bf
parent8a92f05c76d1a29674caca348cdb9fce66946a0d
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