summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/nvram_64.c
diff options
context:
space:
mode:
authorStephen Rothwell2006-03-23 07:38:10 +0100
committerPaul Mackerras2006-03-27 05:48:08 +0200
commitaf308377e204e25f1f58627d05fe0f483703b514 (patch)
treebed18644cbf621ecb5447e626e6a0957ab363a46 /arch/powerpc/kernel/nvram_64.c
parent[PATCH] powerpc: work around sparse warnings in cputable.h (diff)
downloadkernel-qcow2-linux-af308377e204e25f1f58627d05fe0f483703b514.tar.gz
kernel-qcow2-linux-af308377e204e25f1f58627d05fe0f483703b514.tar.xz
kernel-qcow2-linux-af308377e204e25f1f58627d05fe0f483703b514.zip
[PATCH] powerpc: fix various sparse warnings
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/nvram_64.c')
-rw-r--r--arch/powerpc/kernel/nvram_64.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/nvram_64.c b/arch/powerpc/kernel/nvram_64.c
index fd7db8d542db..6c3989f6247d 100644
--- a/arch/powerpc/kernel/nvram_64.c
+++ b/arch/powerpc/kernel/nvram_64.c
@@ -174,8 +174,9 @@ static int dev_nvram_ioctl(struct inode *inode, struct file *file,
return 0;
}
#endif /* CONFIG_PPC_PMAC */
+ default:
+ return -EINVAL;
}
- return -EINVAL;
}
struct file_operations nvram_fops = {