ddr: altera: n5x: size_t cannot be less than 0
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Thu, 24 Jul 2025 15:19:24 +0000 (16:19 +0100)
committerTien Fong Chee <tien.fong.chee@intel.com>
Wed, 30 Jul 2025 09:45:29 +0000 (17:45 +0800)
commit5a13fa7c66dabcf84438601663f7f1cb7fcc8cca
tree27fbe88064542c04d611d04a2be13863d9be4f72
parentdff25bb4abd082e852108b04beba0685a2980aaa
ddr: altera: n5x: size_t cannot be less than 0

The function socfpga_get_handoff_size returns an int so make the struct
fields used to accept the return value also an int so that testing for
less than 0 is then valid.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
drivers/ddr/altera/sdram_n5x.c