From: Haasham Khan <haasham93@gmail.com>
To: sudipm.mukherjee@gmail.com
Cc: teddy.wang@siliconmotion.com, gregkh@linuxfoundation.org,
linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev,
linux-kernel@vger.kernel.org, Haasham Khan <haasham93@gmail.com>
Subject: [PATCH] staging: sm750fb: remove unnecessary goto
Date: Sun, 25 Oct 2026 20:26:37 +0000 [thread overview]
Message-ID: <20261025202637.9274-1-haasham93@gmail.com> (raw)
The goto exit statement jumps directly to the following label.
Remove the unnecessary jump and label, and simplify the conditional
block.
Signed-off-by: Haasham Khan <haasham93@gmail.com>
---
drivers/staging/sm750fb/sm750.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c
index 21e310274330..66b015959963 100644
--- a/drivers/staging/sm750fb/sm750.c
+++ b/drivers/staging/sm750fb/sm750.c
@@ -815,12 +815,9 @@ static int lynxfb_set_fbinfo(struct fb_info *info, int index)
var->vmode = FB_VMODE_NONINTERLACED;
ret = fb_alloc_cmap(&info->cmap, 256, 0);
- if (ret < 0) {
+ if (ret < 0)
dev_err(info->device, "Could not allocate memory for cmap.\n");
- goto exit;
- }
-exit:
lynxfb_ops_check_var(var, info);
return ret;
}
--
2.53.0
next reply other threads:[~2026-10-25 20:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-25 20:26 Haasham Khan [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-10-25 13:02 Haasham Khan
2026-10-25 13:58 ` Dan Carpenter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261025202637.9274-1-haasham93@gmail.com \
--to=haasham93@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=sudipm.mukherjee@gmail.com \
--cc=teddy.wang@siliconmotion.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®