Re: [PATCH 4/5] dma-direct: implement complete bus_dma_mask handling

From: Christoph Hellwig
Date: Thu Sep 27 2018 - 12:27:41 EST


On Thu, Sep 27, 2018 at 05:14:56PM +0100, Robin Murphy wrote:
>> This just seemed more readable to me than min_not_zero, but if others
>> prefer min_not_zero I can switch.
>
> Nah, just checking whether there were any intentionally different
> assumptions compared to the couple of other places in the patch where
> min_not_zero() *is* used. If it's purely a style thing then no worries
> (personally I'd have written it yet another way anyway).

I'm curious: how would you have written it?