[coreboot-gerrit] New patch to review for filo: 4a220d1 Fix a warning in fsys_squashfs.c

Nico Huber (nico.huber@secunet.com) gerrit at coreboot.org
Sun May 26 15:20:19 CEST 2013


Nico Huber (nico.huber at secunet.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3300

-gerrit

commit 4a220d1ffcfa393680ca9e62d6c4ba610b49695a
Author: Nico Huber <nico.huber at secunet.com>
Date:   Sun May 26 15:14:57 2013 +0200

    Fix a warning in fsys_squashfs.c
    
    Fix the following warning:
    
    fs/fsys_squashfs.c: In function 'read_bytes':
    fs/fsys_squashfs.c:74:30: warning: variable 'offset' set but not used [-Wunused-but-set-variable]
    
    by removing the unused code to assign 'offset'.
    
    Change-Id: If85647f98ea8e89eabb7d043632e39865cf8da7b
    Signed-off-by: Nico Huber <nico.huber at secunet.com>
---
 fs/fsys_squashfs.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/fs/fsys_squashfs.c b/fs/fsys_squashfs.c
index a82f00e..5dec882 100644
--- a/fs/fsys_squashfs.c
+++ b/fs/fsys_squashfs.c
@@ -71,12 +71,8 @@ static int inode_read(unsigned int inode_block, unsigned int inode_offset);
  */
 static int read_bytes(long long address, unsigned int len, void *output_data)
 {
-  unsigned int block_number, offset;
   int ret;
 
-  block_number = address >> SECTOR_BITS;
-  offset = address - (block_number);
-
   TRACE("reading from position 0x%x, bytes %d\n", (int)address, len);
   disk_read_func = disk_read_hook;
   ret = devread(0, (int)address, len, output_data);



More information about the coreboot-gerrit mailing list