fs: usbifs: Fix warning in ubifs
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Tue, 30 May 2017 12:29:06 +0000 (14:29 +0200)
committerHeiko Schocher <hs@denx.de>
Tue, 6 Jun 2017 05:11:12 +0000 (07:11 +0200)
commit34cc30af27165696a36274394f6ff019ed762ce6
tree0adbabeeb7f46e403dc724dc9cdf57244bf16366
parentad701b1c911f733a5083c784644b1b67c9d12b3a
fs: usbifs: Fix warning in ubifs

This patch fixes the below warning by typecasting it properly
fs/ubifs/ubifs.c: In function 'ubifs_load':
fs/ubifs/ubifs.c:942:29: warning: cast to pointer from integer
of different size [-Wint-to-pointer-cast]
  err = ubifs_read(filename, (void *)addr, 0, size, &actread);

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
fs/ubifs/ubifs.c