commit | 4058f15c8fb51ddae101670c3dc1a3799f217d00 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Mon Feb 29 15:25:49 2016 -0700 |
committer | Simon Glass <sjg@chromium.org> | Mon Mar 14 15:34:50 2016 -0600 |
tree | e69d3ab2def2dbae84f0cbd7fa0a63c9d4cd4108 | |
parent | b89a8442603f6d8a7ec448540c2e5d0a48cc8039 [diff] |
dm: cbfs: Fix handling of invalid type The comment for file_cbfs_type() says that it returns 0 for an invalid type. The code appears to check for -1, except that it uses an unsigned variable to store the type. This results in a warning on 64-bit machines. Adjust it to make the meaning clearer. Continue to handle the -1 case since it may be needed. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Stephen Warren <swarren@nvidia.com>