patch-1.3.78 linux/fs/ncpfs/ncplib_kernel.c
Next file: linux/fs/nfs/inode.c
Previous file: linux/fs/ncpfs/ioctl.c
Back to the patch index
Back to the overall index
- Lines: 51
- Date:
Fri Mar 22 12:58:41 1996
- Orig file:
v1.3.77/linux/fs/ncpfs/ncplib_kernel.c
- Orig date:
Tue Mar 5 10:11:07 1996
diff -u --recursive --new-file v1.3.77/linux/fs/ncpfs/ncplib_kernel.c linux/fs/ncpfs/ncplib_kernel.c
@@ -217,14 +217,9 @@
ncp_add_byte(server, 0);
ncp_add_mem(server, file_id, 6);
- if ((result = ncp_request(server, 66)) != 0)
- {
- ncp_unlock_server(server);
- return result;
- }
-
+ result = ncp_request(server, 66);
ncp_unlock_server(server);
- return 0;
+ return result;
}
static void
@@ -366,14 +361,9 @@
ncp_add_handle_path(server, file->volNumber,
file->DosDirNum, 1, NULL);
- if ((result = ncp_request(server, 87)) != 0)
- {
- ncp_unlock_server(server);
- return result;
- }
-
+ result = ncp_request(server, 87);
ncp_unlock_server(server);
- return 0;
+ return result;
}
int
@@ -390,14 +380,9 @@
ncp_add_handle_path(server, dir->volNumber,
dir->DosDirNum, 1, name);
- if ((result = ncp_request(server, 87)) != 0)
- {
- ncp_unlock_server(server);
- return result;
- }
-
+ result = ncp_request(server, 87);
ncp_unlock_server(server);
- return 0;
+ return result;
}
static inline void
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this