diff options
-rw-r--r-- | include/spl_load.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/spl_load.h b/include/spl_load.h index 1c2b296c0a2..83db3812029 100644 --- a/include/spl_load.h +++ b/include/spl_load.h @@ -22,7 +22,7 @@ static inline int _spl_load(struct spl_image_info *spl_image, read = info->read(info, offset, ALIGN(sizeof(*header), spl_get_bl_len(info)), header); - if (read < sizeof(*header)) + if (read < (int)sizeof(*header)) return -EIO; if (image_get_magic(header) == FDT_MAGIC) { |