Message ID | dbbf14a0003016c7fd4529918d0e9e8f0c828a7e.1734010609.git.mehdi.djait@linux.intel.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [v2,1/2] media: ccs: Print a warning on CCS static data parser failure | expand |
diff --git a/drivers/media/i2c/ccs/ccs-data.c b/drivers/media/i2c/ccs/ccs-data.c index c40d859166dd..0c1ac406aa17 100644 --- a/drivers/media/i2c/ccs/ccs-data.c +++ b/drivers/media/i2c/ccs/ccs-data.c @@ -976,6 +976,7 @@ int ccs_data_parse(struct ccs_data_container *ccsdata, const void *data, out_cleanup: kvfree(bin.base); memset(ccsdata, 0, sizeof(*ccsdata)); + dev_warn(dev, "failed to parse CCS static data: %d\n", rval); return rval; }
Besides returning an error, also print a warning when ccs_data_parse() fails. Signed-off-by: Mehdi Djait <mehdi.djait@linux.intel.com> --- v1 -> v2: - changed commit msg - removed "file" from the warning drivers/media/i2c/ccs/ccs-data.c | 1 + 1 file changed, 1 insertion(+)