mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-22 20:24:27 +01:00
jffs2: Fix set but not used warning
We only use 'ofs' in jffs2_sum_scan_sumnode when debugging as it's part of a dbg_summary call. Mark this as __maybe_unused. Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
65b3c6bbae
commit
1c8fdf8779
1 changed files with 2 additions and 1 deletions
|
|
@ -115,6 +115,7 @@
|
|||
#include <config.h>
|
||||
#include <malloc.h>
|
||||
#include <div64.h>
|
||||
#include <linux/compiler.h>
|
||||
#include <linux/stat.h>
|
||||
#include <linux/time.h>
|
||||
#include <watchdog.h>
|
||||
|
|
@ -1328,7 +1329,7 @@ int jffs2_sum_scan_sumnode(struct part_info *part, uint32_t offset,
|
|||
struct b_lists *pL)
|
||||
{
|
||||
struct jffs2_unknown_node crcnode;
|
||||
int ret, ofs;
|
||||
int ret, __maybe_unused ofs;
|
||||
uint32_t crc;
|
||||
|
||||
ofs = part->sector_size - sumsize;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue