summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2015-03-19 11:20:45 +0900
committerSimon Horman <horms@verge.net.au>2015-03-19 11:20:45 +0900
commit720d110389f20012b478d376abcb3121c2fcb075 (patch)
treec21f5c86b20542919f4a2c9c44d20ed779c10831
parent23a806695fa7f596397c5653ac832a2539211e67 (diff)
x86: Remove unnecessary res variable from efi_map_added
gcc 4.9.1 tells me this variable is set but unused Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--kexec/arch/i386/kexec-x86-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kexec/arch/i386/kexec-x86-common.c b/kexec/arch/i386/kexec-x86-common.c
index bc622e9..3624192 100644
--- a/kexec/arch/i386/kexec-x86-common.c
+++ b/kexec/arch/i386/kexec-x86-common.c
@@ -293,10 +293,10 @@ again:
* @return 1 if parameter is present, 0 if not or if an error occurs.
*/
int efi_map_added( void ) {
- char buf[512], *res;
+ char buf[512];
FILE *fp = fopen( "/proc/cmdline", "r" );
if( fp ) {
- res = fgets( buf, 512, fp );
+ fgets( buf, 512, fp );
fclose( fp );
return strstr( buf, "add_efi_memmap" ) != NULL;
} else {