Remove some whitespace from ncpfs Few whitespace errors sneaked in in last diff. Remove them. Signed-off-by: Petr Vandrovec diff --git a/fs/ncpfs/ioctl.c b/fs/ncpfs/ioctl.c index da9d0e0..c2a1f9a 100644 --- a/fs/ncpfs/ioctl.c +++ b/fs/ncpfs/ioctl.c @@ -304,7 +304,7 @@ static long __ncp_ioctl(struct inode *inode, unsigned int cmd, unsigned long arg server->current_size = request.size; memcpy(server->packet, bouncebuffer, request.size); - result = ncp_request2(server, request.function, + result = ncp_request2(server, request.function, bouncebuffer, NCP_PACKET_SIZE_INTERNAL); if (result < 0) result = -EIO; @@ -378,7 +378,7 @@ static long __ncp_ioctl(struct inode *inode, unsigned int cmd, unsigned long arg if (dentry) { struct inode* s_inode = dentry->d_inode; - + if (s_inode) { sr.volNumber = NCP_FINFO(s_inode)->volNumber; sr.dirEntNum = NCP_FINFO(s_inode)->dirEntNum; @@ -433,7 +433,7 @@ static long __ncp_ioctl(struct inode *inode, unsigned int cmd, unsigned long arg dentry = inode->i_sb->s_root; if (dentry) { struct inode* s_inode = dentry->d_inode; - + if (s_inode) { NCP_FINFO(s_inode)->volNumber = vnum; NCP_FINFO(s_inode)->dirEntNum = de; @@ -455,7 +455,7 @@ static long __ncp_ioctl(struct inode *inode, unsigned int cmd, unsigned long arg return result; } -#ifdef CONFIG_NCPFS_PACKET_SIGNING +#ifdef CONFIG_NCPFS_PACKET_SIGNING case NCP_IOC_SIGN_INIT: { struct ncp_sign_init sign; @@ -477,14 +477,14 @@ static long __ncp_ioctl(struct inode *inode, unsigned int cmd, unsigned long arg } mutex_unlock(&server->rcv.creq_mutex); ncp_unlock_server(server); - return 0; + return 0; } - + case NCP_IOC_SIGN_WANTED: { int state; - ncp_lock_server(server); + ncp_lock_server(server); state = server->sign_wanted; ncp_unlock_server(server); if (put_user(state, (int __user *)argp)) @@ -550,7 +550,7 @@ static long __ncp_ioctl(struct inode *inode, unsigned int cmd, unsigned long arg if (rqdata.cmd == NCP_LOCK_CLEAR) { result = ncp_ClearPhysicalRecord(NCP_SERVER(inode), - NCP_FINFO(inode)->file_handle, + NCP_FINFO(inode)->file_handle, rqdata.offset, rqdata.length); if (result > 0) result = 0; /* no such lock */ @@ -573,7 +573,7 @@ static long __ncp_ioctl(struct inode *inode, unsigned int cmd, unsigned long arg rqdata.timeout); if (result > 0) result = -EAGAIN; } -outrel: +outrel: ncp_inode_close(inode); return result; } @@ -777,7 +777,7 @@ outrel: #ifdef CONFIG_NCPFS_NLS case NCP_IOC_SETCHARSETS: return ncp_set_charsets(server, argp); - + case NCP_IOC_GETCHARSETS: return ncp_get_charsets(server, argp); @@ -796,7 +796,7 @@ outrel: atomic_set(&server->dentry_ttl, user); return 0; } - + case NCP_IOC_GETDENTRYTTL: { u_int32_t user = (atomic_read(&server->dentry_ttl) * 1000) / HZ; diff --git a/fs/ncpfs/ncplib_kernel.c b/fs/ncpfs/ncplib_kernel.c index 7bcc99d..a95615a 100644 --- a/fs/ncpfs/ncplib_kernel.c +++ b/fs/ncpfs/ncplib_kernel.c @@ -578,7 +578,7 @@ ncp_mount_subdir(struct ncp_server *server, int dstNS; int result; - ncp_update_known_namespace(server, volNumber, &dstNS); + ncp_update_known_namespace(server, volNumber, &dstNS); if ((result = ncp_ObtainSpecificDirBase(server, srcNS, dstNS, volNumber, dirEntNum, NULL, newDirEnt, newDosEnt)) != 0) {