Re: [PATCH 26/32] aio: refactor read/write iocb setup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
--
To unsubscribe from this list: send the line "unsubscribe linux-api" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux