On 31 August 2015 at 01:43, Konstantin Belousov <kostik...@gmail.com> wrote: > On Sun, Aug 30, 2015 at 09:54:33PM +0000, Adrian Chadd wrote: >> static int >> -iwn_ioctl(struct ieee80211com *ic, u_long cmd, void *data) >> +iwn_cdev_open(struct cdev *dev, int flags, int type, struct thread *td) >> { >> - struct ifreq *ifr = data; >> - struct iwn_softc *sc = ic->ic_softc; >> - int error = 0; >> - >> + >> + return (0); >> +} >> + >> +static int >> +iwn_cdev_close(struct cdev *dev, int flags, int type, struct thread *td) >> +{ >> + >> + return (0); >> +} > > devfs does the right thing for drivers which does not provide d_open and > d_close methods, these empty stubs are not needed.
I'll remove them tomorrow. I copied off of cxgbe, which does this. Thanks! -adrian _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"