From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (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 792F03C5DBA for ; Wed, 11 Mar 2026 10:12:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773223932; cv=none; b=mMW3Xlela74N3ai3QQxa99NQpFSxGzfy303AxGYgHhzlL2bYGoc6ZQUNS8tZTkUJ05i4C/3PhgkYbL0RTyw5W4Jh/rLv66WfR8tgAglzhod/L6X1wTIBf6SLQ8xltkOuR8xk5x0eGk4ukDYrSkcSI0IOS49bCAGGBRXT5unB5Xs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773223932; c=relaxed/simple; bh=HHCHRMBlQWoG2h0erH2fneWs+r/ypJ7fbjpTRA584w0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uZRu8h8yUefI6VI+g5IdMHrwmzH6VdBjORjg0ybwhTj49wdYrayqVvg38oTtS71Ozf1bjuqVcVlbCcMp9k38xQrCZrIc2+PNJxtzZZ7rWwblthZS9FCItFBw/AwqP5sL2bU5A+W8eEbfxBdymNtxR917bVd2u2mFQW3lz920xlM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=YkXBu9KS; arc=none smtp.client-ip=209.85.221.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="YkXBu9KS" Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-439c4a93841so5786561f8f.1 for ; Wed, 11 Mar 2026 03:12:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1773223930; x=1773828730; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=yh7hOj6bN7zf2QqBV2lDsxvYwL2EPcm4zO7IO9jvMh0=; b=YkXBu9KSTo42ORojl2Bl3L7DtQHE8tnP5/KCiTUqOkEO+VM6Z21L2iN4/5F79HXR57 ADrWnsOa/dtPJtsfTFj+DeURm6SeS5HVhxkFnktFUHP9DX0aKp5IZYL4RrPIH9zeL7px iQcBDuOI/GDXfP530tMEQoWZmXvA+f9ztCK2UAHwfBBqxrhqP+iv/wxRkYw6QGjeIchj wbeh4lwIzdf2HTFZSqT956Oq87qqslxmt1aKPYR9xc04qyy6DQo1bIX1CQkIybOHQX2x 44dLznj0TN34o14tUXktFitVsPES3J1rwMQ69Cr2mknVfXkROvqfwSvWnMCl7PA9xSwF P9qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773223930; x=1773828730; h=in-reply-to:content-disposition: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; bh=yh7hOj6bN7zf2QqBV2lDsxvYwL2EPcm4zO7IO9jvMh0=; b=Ocrw+/K5CAHvHR2SURhwwhZIumdAdfDf6AXiPGUUPw1qwbyEHgkP2JQ8lZXfkmZFeE DAc62IzCkF36Qbpm91P6NG1Dhpe+4NZbKfv7L5Sb8oWoCox3GnmHtJIRaacY4gBFXBME TlV2Z3UlxnxuXkjaI/WgDwK8MGoVe7fkdpo0XjLj/7CTEnoAyxXqcgTCkN03qLExFB5T oKnWmSFNJQJiZp00Ba8jp+myWhwjW0mlH4cb9VmKmcTlQX2RsGIHsP8QIDWltn3CD5WU Bk8cFHEMk9vPaAEw+u8vYYfUu8g8C8B/rBd1Dwxqda+M6ZD2pz64ajaSWlhzUbF3aFvT qBrg== X-Forwarded-Encrypted: i=1; AJvYcCXFLQWEIi0owVi9rPysSE2ne1DAhNwV7UF5o2Z4d/iElQXE3CkTN5LYcH7QxgSy7a0QWsLNh4BksgHQ6t0=@vger.kernel.org X-Gm-Message-State: AOJu0YwoL5jIAXUTnqwAJw5q4G/3tc7ikPMvwHp4tbfkpEF43i972hLr Tven3yLpN1Qo4VolCHO/FkyqIJM9icV8eFEOPvUewCOEoi9WQOByZmGBbzMffgpFqbA= X-Gm-Gg: ATEYQzwzkbOSKBeMeB+Jx/73Heifz69/XXqKbz/p53pnVR9beDQZipnzi3uU7gGSbgP ZJnpOp7+DRYg2buh4rAKnva4ZuP/d8QlEd1BIojIiKV842F780iFKP0/zcahv1jxswza+Mj+8SQ EA5tw9CBk0e4/K7kRGRdJGVdL+S0pDxemRgflOLD+UX5Rc2apSu9pTJoY0ma4f2ENP42gUMzLYk G5uD27jZr3Wzc6zYtFu0NM2NhF+gc92ZW0tcMocOofZd2Tvd7sFe9J5cbPVy198yaL2qKVl67yX vo3ZDbA7CDXaz9OdyPmG7fN33pYphjUeNEsLVNqVn+DSEY3O7pG5OxLyX1wYnIAljFSCkt/U+1J nHERPB6q2F5/EwhjVXgVsj4TOEvSr/RTmik/tJBx4QRj3Ng3LDMUH626GXriwMCU7rq3cVhtDtY OXewp2nAa875s6e6Y9JmgEpWVsRtrB X-Received: by 2002:a05:6000:4011:b0:439:cbc2:63b with SMTP id ffacd0b85a97d-439f842c345mr3685482f8f.29.1773223929820; Wed, 11 Mar 2026 03:12:09 -0700 (PDT) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-439f818d209sm5231417f8f.5.2026.03.11.03.12.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Mar 2026 03:12:09 -0700 (PDT) Date: Wed, 11 Mar 2026 13:12:06 +0300 From: Dan Carpenter To: Tomasz Unger Cc: Andy Shevchenko , Hans de Goede , Mauro Carvalho Chehab , Sakari Ailus , Greg Kroah-Hartman , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: Re: [PATCH v4] media: staging: atomisp: Remove unnecessary return statements from void functions Message-ID: References: <20260311-atomisp-remove-void-return-v2b-v4-1-62275c55e353.ref@yahoo.pl> <20260311-atomisp-remove-void-return-v2b-v4-1-62275c55e353@yahoo.pl> 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: <20260311-atomisp-remove-void-return-v2b-v4-1-62275c55e353@yahoo.pl> On Wed, Mar 11, 2026 at 10:48:07AM +0100, Tomasz Unger wrote: > diff --git a/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_formatter.c b/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_formatter.c > index 40b3f1e48c56..db4052ab3665 100644 > --- a/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_formatter.c > +++ b/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_formatter.c > @@ -6,7 +6,6 @@ > > #include "system_global.h" > > - I was debating whether I should ignore this... When you delete a return and a blank line those have to be done as one step otherwise you're introducing new checkpatch warnings. But this blank line is an unrelated change. The patch does it a couple other places as well. > #include "input_formatter.h" > #include > #include "gp_device.h" > @@ -65,8 +64,6 @@ void input_formatter_rst( > if (!HIVE_IF_BIN_COPY[ID]) { > input_formatter_reg_store(ID, addr, rst); > } > - > - return; > } > [ snip ] > @@ -483,7 +482,6 @@ void hmm_bo_release(struct hmm_buffer_object *bo) > __bo_insert_to_free_rbtree(&bdev->free_rbtree, bo); > > mutex_unlock(&bdev->rbtree_mutex); > - return; > } > > void hmm_bo_device_exit(struct hmm_bo_device *bdev) > @@ -737,8 +735,6 @@ void hmm_bo_free_pages(struct hmm_buffer_object *bo) > kfree(bo->pages); > mutex_unlock(&bo->mutex); > > - return; > - Deleting this return introduces a bug. > status_err2: > mutex_unlock(&bo->mutex); > dev_err(atomisp_dev, > @@ -868,8 +864,6 @@ void hmm_bo_unbind(struct hmm_buffer_object *bo) > > mutex_unlock(&bo->mutex); > > - return; > - Bug. > status_err: > mutex_unlock(&bo->mutex); > dev_err(atomisp_dev, regards, dan carpenter