From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751503AbdIPBp1 (ORCPT ); Fri, 15 Sep 2017 21:45:27 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:39660 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751117AbdIPBpY (ORCPT ); Fri, 15 Sep 2017 21:45:24 -0400 To: Colin King Cc: "James E . J . Bottomley" , "Martin K . Petersen" , Varun Prakash , linux-scsi@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] csi: libcxgbi: remove redundant check and close on csk From: "Martin K. Petersen" Organization: Oracle Corporation References: <20170907135133.16636-1-colin.king@canonical.com> Date: Fri, 15 Sep 2017 21:45:15 -0400 In-Reply-To: <20170907135133.16636-1-colin.king@canonical.com> (Colin King's message of "Thu, 7 Sep 2017 14:51:33 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Source-IP: userv0022.oracle.com [156.151.31.74] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Colin, > csk is always null on the error return path and so the non-null check > and call to cxgbi_sock_closed on csk is redundant and can be removed. Applied to 4.15/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering