Message ID | 1d6c298a-81d5-4ffd-becb-3a796690f4be@ancud.ru |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-89063-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp145964dyc; Fri, 1 Mar 2024 12:48:35 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX8Q3US8qILgFeTySW0kazniOzwzo02eWWtBQqxhHZQNHzBB+HKS+kBE8Q+ClJgEYwJIvviPZq0PHsCLvLyDAarl/K8ug== X-Google-Smtp-Source: AGHT+IF5pbDsFPNgQO9o4Ttnp7SJLlZr6IC6EFbtCaCSeklTr80vnR9ACvj8UGkxiEDgdcMsV/k1 X-Received: by 2002:a92:c24f:0:b0:365:27e7:4b60 with SMTP id k15-20020a92c24f000000b0036527e74b60mr3100377ilo.21.1709326114838; Fri, 01 Mar 2024 12:48:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709326114; cv=pass; d=google.com; s=arc-20160816; b=uTHD9VmRdaw6JDgWz57susj1IzW6kJCcr+wDFSv1BjoMEvbcDpgZ5YZdA6NutkP41y vYa16EQ5Ztkenilz4At6wmy9ne+lEJXR7Rww5IgHVuO5two+TWlm/5KvQJJnPziMBpry RD+UYOp+hGEfjD2JwKEpwuxMXn1VFkyj85Kriim8e6vo2sNDYfg9MU0XLhb97puGzHQ2 4RWjXWHZEYyxr7TEiV2x+lJ8Ct1kC4PGYHG+iSY8Hft0f9BGXmTOyKY/ahl5q4qPCR9Q Als5D9SyqbZb9oIt0lIewHhoItpcEuz3RoN8dS6Y8AFbCq0n6tTy/m0ZeT6PUuX9b+dJ oB0Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:cc:to:content-language :references:subject:from:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=/09u8eCz6mtmj9cjC2cdUftj0x4n6wE3qhtikgDr73M=; fh=Vvw+9xTN5X/kFv7N8nv3dogI77vLATiY9/CprwHYVwM=; b=t6rm77ch1IYW1PQx6RPYxLOYlVjcnQfoXTnGXqmO7yoyaYJ2rF3v6Avwfd/ZHN7JmL CViWSQ8F+WX1nWo8Qv1sIhqj41braitn+c3C2Z/IlqEenCzekWjVTOC59UU1MmvbWm4H qlFEqcNK9GJ19L6pwiGelwCwaR2beIy6j6k9BRw4tFTnwNPN2yS9cOtNhl2HsjfVDvxl 3H2BNlXSsuppKmol8V6oB7Tf3rYKsyy0nwLCdTJ5fFZmYirII3SXgcYLCF7rQZrXqxym U/+0Dzf7dSHvLTQ+nrE0qbBC+74pW/ni/A4BB8SJwZE85ty4Pr4LdLJ4VqeUWYmqNw8T pQ9g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=ancud.ru); spf=pass (google.com: domain of linux-kernel+bounces-89063-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89063-ouuuleilei=gmail.com@vger.kernel.org" Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id bx37-20020a056a02052500b005e44b47f272si4731640pgb.410.2024.03.01.12.48.34 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 12:48:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89063-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=ancud.ru); spf=pass (google.com: domain of linux-kernel+bounces-89063-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89063-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id B2CE5B26CA9 for <ouuuleilei@gmail.com>; Fri, 1 Mar 2024 20:14:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 728F33D0C0; Fri, 1 Mar 2024 20:13:41 +0000 (UTC) Received: from relay162.nicmail.ru (relay162.nicmail.ru [91.189.117.6]) (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 D16E57EC; Fri, 1 Mar 2024 20:13:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.189.117.6 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709324019; cv=none; b=Ir0V9Bo4msHa+o+lDzw4XUZifydg8uym72nR/dAKRGMJij2kb2TTqCydsQUKqgna7+CwvvC6wxmlBiy5HQPyGaVYb+Lbru7LAsZKFkhlAHqHHy2SPQNiVSWVgrAqXQaFBwn3qsARAQMUknSiaJYXyemHGh/dWnXzRO2aRYofkN8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709324019; c=relaxed/simple; bh=qsTCsmAF3I9S9oSBSGdZteZ9eWDoMSLbY3Z0xeS0S9Q=; h=Message-ID:Date:MIME-Version:From:Subject:References:To:Cc: In-Reply-To:Content-Type; b=grd85gljeFW9Z0z2Wxc/jPSzjQuP/6dt3YK7Ab59+2WG25hOnKQ1pd0VzYXL3R0hwgk07hyuVDZMY4whDJ9W5Rfoq1H71jiD5/27qnVnN94uL3xOc50y6Z1crfUr7oGnexEHtdGPWbHNOkv41XtdqwuOcuOoQFpDZWSfKy0IHSI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ancud.ru; spf=pass smtp.mailfrom=ancud.ru; arc=none smtp.client-ip=91.189.117.6 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ancud.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ancud.ru Received: from [10.28.138.19] (port=5690 helo=[192.168.95.111]) by relay.hosting.mail.nic.ru with esmtp (Exim 5.55) (envelope-from <kiryushin@ancud.ru>) id 1rg8wl-00053b-8I; Fri, 01 Mar 2024 22:53:32 +0300 Received: from [87.245.155.195] (account kiryushin@ancud.ru HELO [192.168.95.111]) by incarp1106.mail.hosting.nic.ru (Exim 5.55) with id 1rg8wl-000Kr6-1b; Fri, 01 Mar 2024 22:53:31 +0300 Message-ID: <1d6c298a-81d5-4ffd-becb-3a796690f4be@ancud.ru> Date: Fri, 1 Mar 2024 22:53:29 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Nikita Kiryushin <kiryushin@ancud.ru> Subject: [PATCH] staging: sm750fb: Remove unneeded setting of info->screen_size References: <> Content-Language: en-US To: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Cc: Teddy Wang <teddy.wang@siliconmotion.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org In-Reply-To: <> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-MS-Exchange-Organization-SCL: -1 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792358340030386653 X-GMAIL-MSGID: 1792358340030386653 |
Series |
staging: sm750fb: Remove unneeded setting of info->screen_size
|
|
Commit Message
Nikita Kiryushin
March 1, 2024, 7:53 p.m. UTC
In lynxfb_set_fbinfo info->screen_size is set twice, the first value is
never used and then overwritten.
Remove the first time the value is set.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: 81dee67e215b ("staging: sm750fb: add sm750 to staging")
Signed-off-by: Nikita Kiryushin <kiryushin@ancud.ru>
---
drivers/staging/sm750fb/sm750.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index 04c1b32a22c5..70d1c8292df0 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -845,7 +845,6 @@ static int lynxfb_set_fbinfo(struct fb_info *info, int index) info->pseudo_palette = &par->pseudo_palette[0]; info->screen_base = crtc->v_screen; pr_debug("screen_base vaddr = %p\n", info->screen_base); - info->screen_size = line_length * var->yres_virtual; /* set info->fix */ fix->type = FB_TYPE_PACKED_PIXELS;