From nobody Thu Feb 12 11:50:07 2026 Received: from mail-4316.protonmail.ch (mail-4316.protonmail.ch [185.70.43.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6146757876 for ; Tue, 2 Apr 2024 22:43:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712097834; cv=none; b=SYxWLphLSRhMshyLmtsQt+EVxZSg60kGncz6eIGoEIprbCA6mb5UbUS3gUtf+D0PxNp6CKAwyvmYeJ8j4g6VmyHKQbNwQ2xL2ke54R33BbzizfvMlj+n/DYnxvb9qGD+h87TUOS2UdyfmG66MLd1G4roqI0GZRxoSl+DvVhqA+8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712097834; c=relaxed/simple; bh=2vj7L4SvO9kgXWMpNZi1sl6xySqYvZYHm1x8CzMj6no=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=pEfzwYOkpNl9rMUJWoWVzvKXT51tjvNLGjJI5j0XFof+PDqhQ3fDf2EgBsAXrx2g2+VP6Rpncbawcq2BpWvMbJ0tBP8mYxlZxNOAuZ3kJ7ZizUZ5p5ZYP/s15NhGnJ03u/HAUl2BIAZKSeZ169p8p6biPpZqJTHTHYoyFhMmgVI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=pm.me; spf=pass smtp.mailfrom=pm.me; dkim=pass (2048-bit key) header.d=pm.me header.i=@pm.me header.b=WaSfnbwK; arc=none smtp.client-ip=185.70.43.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=pm.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pm.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pm.me header.i=@pm.me header.b="WaSfnbwK" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1712097826; x=1712357026; bh=0FtEGd4MmokinMdwcnnrHLEq9ZEZJcFh+6iVS2zIfJU=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=WaSfnbwKIFhzpOw66WKqxu7gC/3rrd7iRVDvJGKLqKY7bVIiR8QJGS0fpy2fptwuu pr1W5kFVCbEcVciqQVaR/L3V/qXE2jiFotdujciehOKyQlAdlzUIstDI1OzkiMsi1F 0NgxypKbrjykZlS7n18QQD3XEKFAgj2uDGk2gzvgYBvRJFXDi93L8ZmYw1uSEiRqRR f8miPnzcJvhr3o3h/xTMa8BRkkpUjIVyVwJ6TSv9E1Op+4uFdXubrr4vOWo+9NH6mr uA8vd6CycFyyDm1JQ4ZqkjmfeBpN44z5JWqEPlMqm2KnUFVsOvHK5AogArKrQRs7V8 Fo4bd5ARcaEHA== Date: Tue, 02 Apr 2024 22:43:38 +0000 To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org From: Nicolas Devos Cc: Nicolas Devos Subject: [PATCH 2/4] gpu/drm: Remove unnecessary braces Message-ID: <20240402224320.12146-3-ndevos-dev@pm.me> In-Reply-To: <20240402224320.12146-1-ndevos-dev@pm.me> References: <20240402224320.12146-1-ndevos-dev@pm.me> Feedback-ID: 76711691:user:proton Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This commit fixes following checkpatch warnings: WARNING: braces {} are not necessary for single statement blocks WARNING: braces {} are not necessary for any arm of this statement Signed-off-by: Nicolas Devos --- drivers/gpu/drm/drm_connector.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connecto= r.c index 40350256b1f6..6d8f0fc905f3 100644 --- a/drivers/gpu/drm/drm_connector.c +++ b/drivers/gpu/drm/drm_connector.c @@ -314,9 +314,8 @@ static int __drm_connector_init(struct drm_device *dev, config->tile_property, 0); =20 - if (drm_core_check_feature(dev, DRIVER_ATOMIC)) { + if (drm_core_check_feature(dev, DRIVER_ATOMIC)) drm_object_attach_property(&connector->base, config->prop_crtc_id, 0); - } =20 connector->debugfs_entry =3D NULL; out_put_type_id: @@ -2818,9 +2817,9 @@ int drm_connector_set_obj_prop(struct drm_mode_object= *obj, struct drm_connector *connector =3D obj_to_connector(obj); =20 /* Do DPMS ourselves */ - if (property =3D=3D connector->dev->mode_config.dpms_property) { + if (property =3D=3D connector->dev->mode_config.dpms_property) ret =3D (*connector->funcs->dpms)(connector, (int)value); - } else if (connector->funcs->set_property) + else if (connector->funcs->set_property) ret =3D connector->funcs->set_property(connector, property, value); =20 if (!ret) --=20 2.42.0