aboutsummaryrefslogtreecommitdiff
path: root/sys/netsmb/smb_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netsmb/smb_dev.c')
-rw-r--r--sys/netsmb/smb_dev.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/netsmb/smb_dev.c b/sys/netsmb/smb_dev.c
index f88d14330c4a..0b577564aff7 100644
--- a/sys/netsmb/smb_dev.c
+++ b/sys/netsmb/smb_dev.c
@@ -69,7 +69,6 @@ MODULE_VERSION(netsmb, NSMB_VERSION);
static int smb_version = NSMB_VERSION;
struct sx smb_lock;
-
SYSCTL_DECL(_net_smb);
SYSCTL_INT(_net_smb, OID_AUTO, version, CTLFLAG_RD, &smb_version, 0, "");
@@ -172,7 +171,6 @@ sdp_trydestroy(struct smb_dev *sdp)
return;
}
-
static int
nsmb_dev_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *td)
{
@@ -238,7 +236,7 @@ nsmb_dev_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thre
case SMBIOC_SETFLAGS: {
struct smbioc_flags *fl = (struct smbioc_flags*)data;
int on;
-
+
if (fl->ioc_level == SMBL_VC) {
if (fl->ioc_mask & SMBV_PERMANENT) {
on = fl->ioc_flags & SMBV_PERMANENT;
@@ -309,7 +307,7 @@ nsmb_dev_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thre
struct smbioc_rw *rwrq = (struct smbioc_rw*)data;
struct uio auio;
struct iovec iov;
-
+
if ((ssp = sdp->sd_share) == NULL) {
error = ENOTCONN;
goto out;
@@ -412,4 +410,3 @@ smb_dev2share(int fd, int mode, struct smb_cred *scred,
SMB_UNLOCK();
return error;
}
-