From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f44.google.com (mail-ot1-f44.google.com [209.85.210.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B17A8406285 for ; Thu, 9 Jul 2026 10:01:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783591266; cv=none; b=RV78rO95SUXYdya4qlV/HnswEvXNjhXrxAWy1vGBov1s38mFr81cwCXrDBdeKuxtWGY81Byt9UD4raDd2hxf7Zv9vhfKFY5TBZ8hijXL0T/JQLswcpDTyBWKgOYnv09AGz0nlG6DIZ3QlVQxj5KB2qfKyN909pWaydpZRW3yYug= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783591266; c=relaxed/simple; bh=ZjrBT03tpVAQN8hCs4F4FAVRcyDNR8qZcjH+dnga9tw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iSTNUZZV/5JBpv7MGChRHo6Ghbk8okha2LwLipnczBbxC/93NmFtvqLeiYhlKHJPvKGIUS7FH5UsezNWs1yVq6Du+PzVoeWbYAxobIfFT8iwatEl++yWF37QZ2jZdihLjOLOhZpxZKu+RAcAKPVf3SNM9Qak38V2/90Y/qpKzPU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=V2QgFSOL; arc=none smtp.client-ip=209.85.210.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="V2QgFSOL" Received: by mail-ot1-f44.google.com with SMTP id 46e09a7af769-7eb34c17b96so958127a34.2 for ; Thu, 09 Jul 2026 03:01:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783591264; x=1784196064; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=NspW+c29jFDspcugqDyFu5pQDqmBWkpRAcY27NdtlTA=; b=V2QgFSOLxUPOhmaQh30oddjMcn/T4vGVtbBTcsdE+CpZn10y64n0vP5sLv9cUoK5Uj NNblNVAEkeEYbhtjodeEWbnQHmJNjgK8bbK5ti6Iw/DwOSRMij8f/mcWRumBJPVK2D6Y 9eEkOcNBjwGsPGDwpdTUArbqerawJMcw/5X1mo3d/TA8xTSlTdwFbihHX6u/FNQ31N06 sLjhrIVkE6Pe3r67nwdYb36IAYu9Zat3w2KYfwSAb1g4xsqpmT44FtgBzCVrgkyso3FH u1rRjURYiJBRui1S62FlcMbMLZPaJSu2T3xMd8j22gKGWc53OGEYmpp4RgewwFPrRXb1 BOEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783591264; x=1784196064; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=NspW+c29jFDspcugqDyFu5pQDqmBWkpRAcY27NdtlTA=; b=qDLLS7Nz/XLINDkp2TVvBHxgg4D48dkK0zocYuL20Rlh0fzc6FN2LzEsUlbZVFohgW 3CRco3KRtSNVT+Ns5XS/LB56WqU3zxWCTr/KK/chtajASV/Y7Sie5vMO+aRV714GR4t7 EdWS8YrG85/MspdcZpBdbgH2WB7fmdyHWBRrDZ0T4YdXk8EzHGg/S8tYYtWxbS1zWWNz AjvZXKCLCFcKkqOdzENuzwVVqcWzVx5PZsXU7IacSdHgk4kx0fSiC6H0QpMFyJZLRxSx /pNtaG4YTUJZN0JiVYR1DkRD3XIu0FV3YhkR4ufVeBs2gCVjmDKfxGlwji+O2QDuWF3o ar3g== X-Forwarded-Encrypted: i=1; AFNElJ+Gn0KwMWpWACDgSwdD7HhC1Kq4r4prdGBBAxqn+eZCf78OkQt94Anor2WQjkNzzVZf4bLAqAjW6WuWWkY=@vger.kernel.org X-Gm-Message-State: AOJu0YwvpUia0gmORuHjocCyHauAHI67Tc84h4C45hp4yggEq+5lEjSX IMi0WY1lHLD3kJHy7cthOIA8oPWObwX66PcESU6jYPGQJcier30ke/tY X-Gm-Gg: AfdE7clsd+PeUwADddleIXKGXlHXg941v0stNhm2XdSXbUF7OaNyK4qvYnkXP1kkZyt nSL6REv4HCH02CGcGIgvKVDV/Qjk+H6pKp0a42gFM9OLixe3d9IqjSN6rW0tvQxuintalMEnnVT idPsbewo4zy9LTICYP9jFi29Yn0rL4mie3e30UmtiTvwNk8oOetT0NA3QGsiag9ZH21yD8ENJc+ cFeY1hVXl4EIza5tsj2ag8qdi9gsrwOObJMsyFFEV8/iC2AJ1c+knKEGGkD+uPB/WQpMiHuVqsd SQoS1iv0Jb2GAf/aZcniWCH7awaDUn8l+RJ4Tyb4X/3kft3GMTdykHxFwFpLM32HY3T4fkdnLB/ wZ3CHeYXHN5Sq9gSELx7k0eddWcnzlfXHcMTAPvLY7lFke3kpFHhSQDAwz6UH7mEjqLXTG6Wr3d tcCHdu X-Received: by 2002:a05:6830:a8f:b0:7e7:aac:4cc9 with SMTP id 46e09a7af769-7ebcff35968mr5312610a34.3.1783591264385; Thu, 09 Jul 2026 03:01:04 -0700 (PDT) Received: from localhost ([74.80.182.70]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7ebcaf7b484sm3740265a34.10.2026.07.09.03.00.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2026 03:01:01 -0700 (PDT) Date: Thu, 9 Jul 2026 13:00:55 +0300 From: Dan Carpenter To: phucduc.bui@gmail.com Cc: Jaroslav Kysela , Takashi Iwai , cassiogabrielcontato@gmail.com, Kees Cook , Cen Zhang , Len Bao , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ALSA: oss: Drop redundant nonseekable_open() return check Message-ID: References: <20260702050236.30751-1-phucduc.bui@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260702050236.30751-1-phucduc.bui@gmail.com> On Thu, Jul 02, 2026 at 12:02:36PM +0700, phucduc.bui@gmail.com wrote: > From: bui duc phuc > > nonseekable_open() always returns 0, so the error check is unnecessary. > Remove the dead error handling path. The idea is that it might return errors in the future. Also the patch is kind of sloppy... regards, dan carpenter