Re: [RFC PATCH v3 1/5] new helper: iov_iter_rw()

From: David Sterba
Date: Wed Mar 18 2015 - 09:42:40 EST


On Tue, Mar 17, 2015 at 02:04:02PM -0700, Omar Sandoval wrote:
> /*
> + * Get one of READ or WRITE out of iter->type without any other flags OR'd in
> + * with it.
> + *
> + * The ?: is just for type safety.
> + */
> +#define iov_iter_rw(i) ((0 ? (struct iov_iter *)0 : (i))->type & RW_MASK)

I'm fine with that, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/