If ctxt wasn't valid, other things would explode wildly.

Cheers,
Jeff

Signed-off-by: Jeff Moyer <jmo...@redhat.com>

diff --git a/modules/cyrus-sasl.c b/modules/cyrus-sasl.c
index 04001d0..4c6a671 100644
--- a/modules/cyrus-sasl.c
+++ b/modules/cyrus-sasl.c
@@ -922,7 +922,7 @@ void autofs_sasl_dispose(struct lookup_context *ctxt)
 {
        int status, ret;
 
-       if (ctxt && ctxt->sasl_conn) {
+       if (ctxt->sasl_conn) {
                sasl_dispose(&ctxt->sasl_conn);
                ctxt->sasl_conn = NULL;
        }

_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to