diff options
author | Devendra Naga <devendranaga4@gmail.com> | 2014-10-25 02:01:55 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-29 17:39:55 +0800 |
commit | a5841ff372c3c79c266ef383e7faee8206f0f757 (patch) | |
tree | 95bc5d47fe591fe60149f4839f4a5e39bf63fe83 /drivers/staging/gs_fpgaboot/gs_fpgaboot.c | |
parent | 92bf93f1260402f17552f91599474bb9ead2a1b2 (diff) | |
download | linux-a5841ff372c3c79c266ef383e7faee8206f0f757.tar.bz2 |
staging: gs_fpgpaboot: fix compiler warning with make W=1
the following compiler warning has been fixed:
drivers/staging/gs_fpgaboot/gs_fpgaboot.c: In function ‘gs_read_bitstream’:
drivers/staging/gs_fpgaboot/gs_fpgaboot.c:160:6: warning: variable ‘size’ set but not used [-Wunused-but-set-variable]
CC drivers/staging/gs_fpgaboot/io.o
LD drivers/staging/gs_fpgaboot/gs_fpga.o
LD drivers/staging/gs_fpgaboot/built-in.o
by removing the size variable.
Signed-off-by: Devendra Naga <devendranaga4@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/gs_fpgaboot/gs_fpgaboot.c')
-rw-r--r-- | drivers/staging/gs_fpgaboot/gs_fpgaboot.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/gs_fpgaboot/gs_fpgaboot.c b/drivers/staging/gs_fpgaboot/gs_fpgaboot.c index bf2f898d3853..31caa7464597 100644 --- a/drivers/staging/gs_fpgaboot/gs_fpgaboot.c +++ b/drivers/staging/gs_fpgaboot/gs_fpgaboot.c @@ -136,12 +136,10 @@ static void gs_print_header(struct fpgaimage *fimage) static void gs_read_bitstream(struct fpgaimage *fimage) { char *bitdata; - int size; int offset; offset = 0; bitdata = (char *)fimage->fw_entry->data; - size = fimage->fw_entry->size; readmagic_bitstream(bitdata, &offset); readinfo_bitstream(bitdata, fimage->filename, &offset); |