Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mp7f0-0000RH-Vn for mharc-grub-devel@gnu.org; Sat, 19 Sep 2009 17:40:03 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mp7ex-0000PK-U4 for grub-devel@gnu.org; Sat, 19 Sep 2009 17:39:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mp7es-0000O8-Cw for grub-devel@gnu.org; Sat, 19 Sep 2009 17:39:58 -0400 Received: from [199.232.76.173] (port=53085 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mp7es-0000O2-76 for grub-devel@gnu.org; Sat, 19 Sep 2009 17:39:54 -0400 Received: from xvm-190-8.ghst.net ([217.70.190.8]:56553 helo=aybabtu.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mp7er-0004Vg-8E for grub-devel@gnu.org; Sat, 19 Sep 2009 17:39:53 -0400 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1Mp7eo-00039J-LC for grub-devel@gnu.org; Sat, 19 Sep 2009 23:39:50 +0200 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1Mp7em-0004Is-6c for grub-devel@gnu.org; Sat, 19 Sep 2009 23:39:48 +0200 Date: Sat, 19 Sep 2009 23:39:48 +0200 From: Robert Millan To: grub-devel@gnu.org Message-ID: <20090919213948.GA16537@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: unnecessary parameter in grub_term_register_{input,output} () X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Sep 2009 21:40:00 -0000 Maybe there's some subtle detail I'm missing, but it seems to me that it's completely pointless to pass the `name' parameter in all calls to these two functions: static inline void grub_term_register_input (const char *name __attribute__ ((unused)), grub_term_input_t term) { grub_handler_register (&grub_term_input_class, GRUB_AS_HANDLER (term)); } static inline void grub_term_register_output (const char *name __attribute__ ((unused)), grub_term_output_t term) { grub_handler_register (&grub_term_output_class, GRUB_AS_HANDLER (term)); } Such as: void grub_console_init (void) { grub_term_register_output ("console", &grub_console_term_output); grub_term_register_input ("console", &grub_console_term_input); } Since we don't use it, and the same information is in term->name anyway. Does anyone see a reason not to simplify this? -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."