]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drbd: Remove redundant and wrong test for NULL simplification in conn_connect()
authorPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 26 Jul 2012 12:12:59 +0000 (14:12 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Fri, 9 Nov 2012 13:05:45 +0000 (14:05 +0100)
commitb666dbf819f9157a4afef2094ec961d216d802b5
tree8adfc3059d6fc0d2e2e223244c6945e68c200c07
parent3174f8c5045ad247563434c4b4897bd89313eafc
drbd: Remove redundant and wrong test for NULL simplification in conn_connect()

Since the drbd_socket_okay() function itself tests if the the
socket is NULL, the explicit test "if (sock.socket && &msock.socket)"
was redundent.
Apart from that the address opperator ('&') before msock.socket rendered
the test pointless.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_receiver.c