]> git.baikalelectronics.ru Git - kernel.git/commit
staging: unisys: Add checks for creation
authorDon Zickus <dzickus@redhat.com>
Wed, 13 May 2015 17:22:21 +0000 (13:22 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 May 2015 20:28:56 +0000 (13:28 -0700)
commit2dd9f6f839d6cc1511a0c240425773565409bd10
tree870d77be3c38e312833f8d9a961aa28e7f6bd491
parent2eb8fd53206e737b5d03840cf746fa205e3c25b2
staging: unisys: Add checks for creation

There was a bunch of channel creation checks before the
visorchannel_create function was called, moving some of those
checks inside.  This keeps the outside code cleaner and handles
the situation where a caller forgets to make these checks.

Signed-off-by: Don Zickus <dzickus@redhat.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorchannel.c