Skip to content

Commit

Permalink
sparc64: Fix build warnings in piggyback_64.c
Browse files Browse the repository at this point in the history
This patch fixes the following build warnings:
arch/sparc/boot/piggyback_64.c: In function 'main':
arch/sparc/boot/piggyback_64.c:44: warning: 'end' may be used uninitialized in this function
arch/sparc/boot/piggyback_64.c:44: warning: 'start' may be used uninitialized in this function

Signed-off-by: Julian Calaby <julian.calaby@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Julian Calaby authored and David S. Miller committed Jun 26, 2009
1 parent 14a2ff6 commit 413ee28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/sparc/boot/piggyback_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ int main(int argc,char **argv)
struct stat s;
int image, tail;

start = end = 0;
if (stat (argv[3], &s) < 0) die (argv[3]);
map = fopen (argv[2], "r");
if (!map) die(argv[2]);
Expand Down

0 comments on commit 413ee28

Please sign in to comment.