1.1.49 cosmetic patches

Manuel J. Galan (manolow@step.es)
Tue, 12 Aug 1997 02:00:39 +0100 (WET DST)


Hi,

On building soundblaster module under SMP gcc complains about:
-----
sb_common.c:666: warning: unused variable `n'
-----

Also on binfmt_elf.c gcc barfs
-----
binfmt_elf.c: In function `load_elf_binary':
binfmt_elf.c:392: warning: `interpreter_dentry' might be used uninitialized in this function
-----

Here are two cosmetic patches (modulo spaces) to make gcc quiet.
-----------------------
--- linux/drivers/sound/sb_common.c.orig Tue Aug 12 01:40:01 1997
+++ linux/drivers/sound/sb_common.c Tue Aug 12 01:39:38 1997
@@ -663,7 +663,9 @@
sb_dsp_init (struct address_info *hw_config)
{
sb_devc *devc;
+#ifndef __SMP__
int n;
+#endif
char name[100];
extern int sb_be_quiet;

--- linux/fs/binfmt_elf.c.orig Tue Aug 12 01:48:26 1997
+++ linux/fs/binfmt_elf.c Tue Aug 12 01:47:23 1997
@@ -389,7 +389,7 @@
struct elfhdr interp_elf_ex;
struct file * file;
struct exec interp_ex;
- struct dentry *interpreter_dentry;
+ struct dentry *interpreter_dentry = NULL;
unsigned long load_addr;
int load_addr_set = 0;
unsigned int interpreter_type = INTERPRETER_NONE;
-----------------------

Rgds.

-- 
Manuel J. Galan
manolow@step.es