]> git.karo-electronics.de Git - linux-beck.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)
commitd5531f3701d7e1b1bef5f8a567d4ed6175f78202
tree870d77be3c38e312833f8d9a961aa28e7f6bd491
parent4f6d8a97833f4640991f696d471486e5442eb0b2
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