Re: [PATCH v4 01/15] device property: Move fwnode_handle_put() into property.h

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

 



On Sat, Feb 17, 2024 at 04:42:35PM +0000, Jonathan Cameron wrote:
> From: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>
> 
> By having this function as static inline in the header, the compiler
> is able to see if can optmize the call out if (IS_ERR_OR_NULL(fwnode))
> This will allow a simpler DEFINE_FREE() call in the following patch.
> 
> Suggested-by: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx>
> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>
> ---
>  drivers/base/property.c  | 14 --------------
>  include/linux/property.h | 14 +++++++++++++-
>  2 files changed, 13 insertions(+), 15 deletions(-)

Acked-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>




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

  Powered by Linux