NetBSD Problem Report #58086

From www@netbsd.org  Thu Mar 28 18:58:37 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id CAB6E1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 28 Mar 2024 18:58:37 +0000 (UTC)
Message-Id: <20240328185836.89A521A923B@mollari.NetBSD.org>
Date: Thu, 28 Mar 2024 18:58:36 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: genfb_attach returns useless int
X-Send-Pr-Version: www-1.0

>Number:         58086
>Category:       kern
>Synopsis:       genfb_attach returns useless int
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 28 19:00:00 +0000 2024
>Originator:     Taylor R Campbell
>Release:        current
>Organization:
The NetFBSD Foundatoin
>Environment:
>Description:
The genfb_attach function never fails, and no callers are prepared to handle failure, but it returns 0 as int.
>How-To-Repeat:
code inspection
>Fix:
Change it to return void instead.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.