Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1146404rdh; Mon, 25 Sep 2023 04:53:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGpW4w4e26hdvG3yzmhFhsaY+8UIo8yHh1W5B/TziTkrTMzOnjjV8JatLkcUP8FihD5qBmZ X-Received: by 2002:a17:902:e845:b0:1c6:e1d:8be0 with SMTP id t5-20020a170902e84500b001c60e1d8be0mr6587107plg.2.1695642831031; Mon, 25 Sep 2023 04:53:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695642831; cv=none; d=google.com; s=arc-20160816; b=g/VBGU5JciW9kSQDoJdGGqfZ1tMbuv1sDCyz/BFiJLsMH3uopJOmCBiJfRKL/xu2Iq qMVV1x1K3aoEHw/YMI0gz5SGRqsSfmfmrvOmDcBXsgMzp+T/XsHMxpNpfHaSpqA6hjSB O0V3YpKi51pLP2NdmN5ucyu0dXBy1BJITPCXNnJB6YkusHpVyNH9brR2GzT45TJ7zH06 oJNBMADWMqIKIlojX02vyk7XWR31PPf0V8O/CoY5YfiPrx8EVXF6dqH2EOO1+ZARqKx9 fRnzS+SU+Br0Vj88zTImM7cRLE09e7YFrB2F13a5ie0CL5UoHKEUtDpoeMuEdOsFM7pf lHoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=6+qhtMC7Ahxm2TMkinha105D+kjRHU0UPuqaz/qbPPM=; fh=N+wjWD9NroeU4v/9m0WxT+5ih09SlfEDTwv3wl+Ui9U=; b=jSDQimtTvrBKNPcNuZTZdOXX+eAon6kd1mQkQ9CDB6HTw5LnZASK/jnXSP0GizD4+6 5k0OVM3ylJeX5cgj0JXUEodoGBnmikj0ed01PYE+xPN5jJGR8gv7eRT0Zss/Jg1kxIjB 8NCtp4BhkAXP0ilqiISawmoEOl2TafnZ9OgnF4FagxhxuoWLnh+BlXAgYJoosupYPtG0 sC9ZXCwDL+RebdtNk886FBa8lr+oSwI3nNdu1jdUEstwUucqpie9yYJMAM0ZqWSdp78S rTHP8JgZaFeMAYzgf8ucpP3oeLMcCJzJdHJVQy1We4YrOglzBnvbgsLQhwDFsQjjsq1Y kflg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id n15-20020a170902e54f00b001bbd91b1e94si10166888plf.505.2023.09.25.04.53.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 04:53:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 913948082DDA; Mon, 25 Sep 2023 04:50:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230071AbjIYLub convert rfc822-to-8bit (ORCPT + 99 others); Mon, 25 Sep 2023 07:50:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjIYLu3 (ORCPT ); Mon, 25 Sep 2023 07:50:29 -0400 Received: from mail-yw1-f179.google.com (mail-yw1-f179.google.com [209.85.128.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 102E9CF; Mon, 25 Sep 2023 04:50:20 -0700 (PDT) Received: by mail-yw1-f179.google.com with SMTP id 00721157ae682-59f6492b415so33107097b3.0; Mon, 25 Sep 2023 04:50:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695642619; x=1696247419; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=s0UP6u4hsoIodJSqXKIKtd9qcKxG8HgXyNCB8NOU6N8=; b=VhOdTjvwLzYLwnWJdjeHLEVuK62BJIMcuDKk8TCRoZN+Dgu6lHJus9BjjqV/FgezID 5IpGkMLZ+ecoTSUbwFGaSQpg96dk6aH4aniFXAbMTjO4ANslT/M55jiISH7ix4oTaMY4 qSjhmQQYH0DYHUo6NOfsbJiWoYjahLlu2Q1t5mBX0kGRrzjgG804QuqeiT9CDhZH8t2D +BK37FYUN4AfNI7qIMKOCYVqrKOX/2swF4ze4N8qO7iQBxL+wSwp+jimWWeLlJzfhRQ0 LZ19lDR9PPqjfpP/Sz1QM8poZxqARA1vAtUK3I6AkGHP6ZhaPNvqvZTEPftQcGf+oWi4 VKtg== X-Gm-Message-State: AOJu0Yyxrd2xqx0u/twerxgTrIx8724x4X6IjS7kUvSd8rVP+J/ihGQl YdHYaD3zg0e9rMj0oPa1VenF6sg21Yf7JQ== X-Received: by 2002:a81:83ce:0:b0:59f:6a25:959e with SMTP id t197-20020a8183ce000000b0059f6a25959emr2383797ywf.10.1695642618989; Mon, 25 Sep 2023 04:50:18 -0700 (PDT) Received: from mail-yw1-f172.google.com (mail-yw1-f172.google.com. [209.85.128.172]) by smtp.gmail.com with ESMTPSA id f128-20020a0ddc86000000b0059c8387f673sm2375733ywe.51.2023.09.25.04.50.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Sep 2023 04:50:18 -0700 (PDT) Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-59f6492b415so33106417b3.0; Mon, 25 Sep 2023 04:50:17 -0700 (PDT) X-Received: by 2002:a0d:d542:0:b0:59f:66a1:bfca with SMTP id x63-20020a0dd542000000b0059f66a1bfcamr2229179ywd.26.1695642617660; Mon, 25 Sep 2023 04:50:17 -0700 (PDT) MIME-Version: 1.0 References: <20230922080421.35145-1-wsa+renesas@sang-engineering.com> <20230922080421.35145-3-wsa+renesas@sang-engineering.com> In-Reply-To: <20230922080421.35145-3-wsa+renesas@sang-engineering.com> From: Geert Uytterhoeven Date: Mon, 25 Sep 2023 13:50:04 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/3] media: i2c: drop check because i2c_unregister_device() is NULL safe To: Wolfram Sang Cc: linux-renesas-soc@vger.kernel.org, Jacopo Mondi , Kieran Bingham , Laurent Pinchart , =?UTF-8?Q?Niklas_S=C3=B6derlund?= , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 25 Sep 2023 04:50:30 -0700 (PDT) On Fri, Sep 22, 2023 at 4:45 PM Wolfram Sang wrote: > No need to check the argument of i2c_unregister_device() because the > function itself does it. > > Signed-off-by: Wolfram Sang Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds