lkml.org 
[lkml]   [2020]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v4 15/27] ata: let compiler optimize out ata_eh_set_lpm() on non-SATA hosts
    On Tue, Mar 17, 2020 at 03:43:21PM +0100, Bartlomiej Zolnierkiewicz wrote:
    > Add !IS_ENABLED(CONFIG_SATA_HOST) to ata_eh_set_lpm() to allow
    > compiler to optimize out the function for non-SATA configs (for
    > PATA hosts "ap && !ap->ops->set_lpm" condition is always true so
    > it's sufficient for the function to return zero).

    Looks good,

    Reviewed-by: Christoph Hellwig <hch@lst.de>

    \
     
     \ /
      Last update: 2020-03-26 10:51    [W:4.083 / U:0.096 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site