Remove NT_STATUS_IS_ERR_RETURN macro from the codebase.
authorGarming Sam <garming@catalyst.net.nz>
Fri, 14 Feb 2014 04:46:40 +0000 (17:46 +1300)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 5 Mar 2014 15:33:22 +0000 (16:33 +0100)
Following the current coding guidelines, it is considered bad practice to return from
within a macro and change control flow as they look like normal function calls.

Change-Id: I39b07b3a799331a5faa968629aa95b836cb78600
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/wrepl_server/wrepl_in_connection.c

index 251e5a024757c0893c0ca93271819f6ffdedead5..b8e9a16dc21d24723f6bcef9e37960dcece6cbc4 100644 (file)
@@ -65,7 +65,9 @@ static NTSTATUS wreplsrv_process(struct wreplsrv_in_connection *wrepl_conn,
        }
 
        status = wreplsrv_in_call(call);
-       NT_STATUS_IS_ERR_RETURN(status);
+       if (NT_STATUS_IS_ERR(status)) {
+               return status;
+       }
        if (!NT_STATUS_IS_OK(status)) {
                /* w2k just ignores invalid packets, so we do */
                DEBUG(10,("Received WINS-Replication packet was invalid, we just ignore it\n"));