[PATCH] 2.5.27 smbiod

From: Marcin Dalecki (dalecki@evision.ag)
Date: Mon Jul 22 2002 - 05:47:17 EST


Fix label at block end warning - don't write "assembler code".

diff -urN linux-2.5.27/fs/smbfs/smbiod.c linux/fs/smbfs/smbiod.c
--- linux-2.5.27/fs/smbfs/smbiod.c 2002-07-20 21:11:26.000000000 +0200
+++ linux/fs/smbfs/smbiod.c 2002-07-22 01:39:05.000000000 +0200
@@ -233,14 +233,14 @@
         int maxwork = 7;
 
         if (server->state != CONN_VALID)
- goto out;
+ return;
 
         do {
                 result = smb_request_recv(server);
                 if (result < 0) {
                         server->state = CONN_INVALID;
                         smbiod_retry(server);
- goto out; /* reconnecting is slow */
+ return; /* reconnecting is slow */
                 } else if (server->rstate == SMB_RECV_REQUEST)
                         smbiod_handle_request(server);
         } while (result > 0 && maxwork-- > 0);
@@ -249,7 +249,7 @@
          * If there is more to read then we want to be sure to wake up again.
          */
         if (server->state != CONN_VALID)
- goto out;
+ return;
         if (smb_recv_available(server) > 0)
                 set_bit(SMBIOD_DATA_READY, &smbiod_flags);
 
@@ -258,7 +258,7 @@
                 if (result < 0) {
                         server->state = CONN_INVALID;
                         smbiod_retry(server);
- goto out; /* reconnecting is slow */
+ return; /* reconnecting is slow */
                 }
         } while (result > 0);
 
@@ -267,8 +267,6 @@
          */
         if (!list_empty(&server->xmitq))
                 set_bit(SMBIOD_DATA_READY, &smbiod_flags);
-
-out:
 }
 
 /*

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Jul 23 2002 - 22:00:37 EST