summaryrefslogtreecommitdiff
path: root/sys/netatalk
diff options
context:
space:
mode:
authorrtr <rtr@NetBSD.org>2014-07-07 07:09:58 +0000
committerrtr <rtr@NetBSD.org>2014-07-07 07:09:58 +0000
commit302da5ea96433beb2e2c1b1e36d34dc01eeec0b0 (patch)
treea2599318c5ddd5f6ff5e7aef45f25d0fb2e04ee6 /sys/netatalk
parent65876e3759ee13c1269128ba04cc1e81aa6899b1 (diff)
* have pr_stat return EOPNOTSUPP consistently for all protocols that do
not fill in struct stat instead of returning success. * in pr_stat remove all checks for non-NULL so->so_pcb except where the pcb is actually used (i.e. cases where we don't return EOPNOTSUPP). proposed on tech-net@
Diffstat (limited to 'sys/netatalk')
-rw-r--r--sys/netatalk/ddp_usrreq.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/sys/netatalk/ddp_usrreq.c b/sys/netatalk/ddp_usrreq.c
index 8b1ca425899..0c361d3af5d 100644
--- a/sys/netatalk/ddp_usrreq.c
+++ b/sys/netatalk/ddp_usrreq.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ddp_usrreq.c,v 1.48 2014/07/06 03:33:33 rtr Exp $ */
+/* $NetBSD: ddp_usrreq.c,v 1.49 2014/07/07 07:09:58 rtr Exp $ */
/*
* Copyright (c) 1990,1991 Regents of The University of Michigan.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ddp_usrreq.c,v 1.48 2014/07/06 03:33:33 rtr Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ddp_usrreq.c,v 1.49 2014/07/07 07:09:58 rtr Exp $");
#include "opt_mbuftrace.h"
@@ -481,14 +481,7 @@ ddp_ioctl(struct socket *so, u_long cmd, void *addr, struct ifnet *ifp)
static int
ddp_stat(struct socket *so, struct stat *ub)
{
- struct ddpcb *ddp;
-
- ddp = sotoddpcb(so);
- if (ddp == NULL)
- return EINVAL;
-
- /* Don't return block size. */
- return 0;
+ return EOPNOTSUPP;
}
/*