Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp5060409pjb; Mon, 27 Jul 2020 11:54:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyt8steiEzLYhc8TMTcnegFYQJFJP5ySBEdFVXPY94mAwVTjOztz+NCX5+jYAFGeBycf/Zq X-Received: by 2002:a17:906:600f:: with SMTP id o15mr7452004ejj.41.1595876046480; Mon, 27 Jul 2020 11:54:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595876046; cv=none; d=google.com; s=arc-20160816; b=kpuk9eKPKt6VAPA2iRaONSgrm47DbaMwa5NKZGNERFRzYpfz5t/KOCetSP2xl/kQyk Y36Qwmv4WtkQhkkVeGHNvAxmuEC4e7cJfuLPTKoCOSvB/QQ0ldmzsk/yX4by2zVVXC05 uTeQ9yhSo9uiM4DKVXBuJlJ6cyQ3bxVw08CRGLZbmK8ve481XlrH2XG/jlNDpaWXyJjC JyR879Yfa0CEmNTvgyp9xdT0FBhz12SOD63ii8nd8cEPUP8eao3tRk3siFQcRA/X9Djn GTMpKzHDiJjQxJtOaAiCEZgy048AWdryqhaFe1SgYTLOxckqMjA4TA/Q+TAoQsOjah3Q 6LPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date; bh=DpTbfkUBlBvvT5zVI0NMSHxHy/40D9Eyq4ErVbQYe6g=; b=v0ddN7TdSP9c50zFOZOL7op0rGaoqqn2v5ZZixacbVwfyHr9CXg+4d/3NUVDkwnwnW Q1QxyEBv3DhI9nDWWVaAPaQ2DRdt3vK8G3R4CnKbtDZBnQG9sFtivSueevh2qyxQLccc Su+6w+ySU59NmRLcNtZAoQWsX33TrMvp81InbROfwO8svfPwXlWbesGTBSOEH41veK+l G4s3PcprksksuaqGwlkIViL5r5hKkcbpCIaOE5IqrRC5yOkW8jd74h/qCaySNh43/+Ek 9ZEljTxfqW0A4akKSocADA/1n6nj9aDHwfHm84gI5YUSsOjao309yy0tf7oXJBJbkwdL 2Arg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f18si5952578edw.95.2020.07.27.11.53.44; Mon, 27 Jul 2020 11:54:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732417AbgG0QkZ (ORCPT + 99 others); Mon, 27 Jul 2020 12:40:25 -0400 Received: from mx2.suse.de ([195.135.220.15]:35042 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728213AbgG0QkY (ORCPT ); Mon, 27 Jul 2020 12:40:24 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 3BC75AC1D; Mon, 27 Jul 2020 16:40:34 +0000 (UTC) Date: Mon, 27 Jul 2020 18:40:22 +0200 Message-ID: From: Takashi Iwai To: Xu Wang Cc: perex@perex.cz, tiwai@suse.com, alexander@tsoy.me, e.burema@gmail.com, henryl@nvidia.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] usb: endpoint : remove needless check before usb_free_coherent() In-Reply-To: <20200727025208.8739-1-vulab@iscas.ac.cn> References: <20200727025208.8739-1-vulab@iscas.ac.cn> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 27 Jul 2020 04:52:08 +0200, Xu Wang wrote: > > usb_free_coherent() is safe with NULL addr and this check is > not required. > > Signed-off-by: Xu Wang Thanks, applied. Takashi