From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754289AbcIMLkG (ORCPT ); Tue, 13 Sep 2016 07:40:06 -0400 Received: from mail-oi0-f48.google.com ([209.85.218.48]:32781 "EHLO mail-oi0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752626AbcIMLjt (ORCPT ); Tue, 13 Sep 2016 07:39:49 -0400 MIME-Version: 1.0 In-Reply-To: <1473703697-903-1-git-send-email-yamada.masahiro@socionext.com> References: <1473703697-903-1-git-send-email-yamada.masahiro@socionext.com> From: Linus Walleij Date: Tue, 13 Sep 2016 13:39:47 +0200 Message-ID: Subject: Re: [PATCH] dmaengine: cleanup with list_first_entry_or_null() To: Masahiro Yamada Cc: dmaengine@vger.kernel.org, "linux-kernel@vger.kernel.org" , Dan Williams , Vinod Koul , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 12, 2016 at 8:08 PM, Masahiro Yamada wrote: > The combo of list_empty() check and return list_first_entry() > can be replaced with list_first_entry_or_null(). > > Signed-off-by: Masahiro Yamada Acked-by: Linus Walleij Excellent deep semantics patch! Yours, Linus Walleij