From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932861AbcINNdv (ORCPT ); Wed, 14 Sep 2016 09:33:51 -0400 Received: from mga09.intel.com ([134.134.136.24]:32446 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762421AbcINNdo (ORCPT ); Wed, 14 Sep 2016 09:33:44 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,334,1470726000"; d="scan'208";a="760622426" Date: Wed, 14 Sep 2016 19:12:02 +0530 From: Vinod Koul To: Masahiro Yamada Cc: dmaengine@vger.kernel.org, Linus Walleij , linux-kernel@vger.kernel.org, Dan Williams , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] dmaengine: cleanup with list_first_entry_or_null() Message-ID: <20160914134202.GK13920@localhost> References: <1473703697-903-1-git-send-email-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1473703697-903-1-git-send-email-yamada.masahiro@socionext.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 13, 2016 at 03:08:17AM +0900, Masahiro Yamada wrote: > The combo of list_empty() check and return list_first_entry() > can be replaced with list_first_entry_or_null(). Applied, thanks In future please do split this per driver, that helps.. -- ~Vinod