On Wed, Jan 10, 2018 at 04:19:53PM -0500, Jeff Moyer wrote:
> > +static int aio_prep_rw(struct kiocb *req, struct iocb *iocb)
> > +{
> > +   int ret;
> > +
> > +   req->ki_filp = fget(iocb->aio_fildes);
> > +   if (unlikely(!req->ki_filp))
> > +           return -EBADF;
> > +   req->ki_complete = aio_complete_rw;
> > +   req->ki_flags = 0;
> 
> The above assignment seems superfluous...

Thanks, fixed.

Reply via email to