From a1947307e7e5cc9af6db4a099df307fa7b957352 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Tue, 8 May 2018 16:16:56 +0000 Subject: [PATCH] We don't use f_devdata, so don't set it. Should that need to change later, we can. This leaves ZFS as the only irregular f_devdata user in the tree. --- stand/common/dev_net.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/stand/common/dev_net.c b/stand/common/dev_net.c index d461f747adaf..c7bea2af1826 100644 --- a/stand/common/dev_net.c +++ b/stand/common/dev_net.c @@ -190,7 +190,6 @@ net_open(struct open_file *f, ...) } netdev_opens++; - f->f_devdata = &netdev_sock; return (error); } @@ -202,9 +201,6 @@ net_close(struct open_file *f) if (debug) printf("net_close: opens=%d\n", netdev_opens); #endif - - f->f_devdata = NULL; - return (0); }