commit | c0cdfaa0a5e7a346ac2f661f63f543cdc5f7cbbe | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@ingics.com> | Sun Jun 23 15:50:07 2013 +0800 |
committer | Grant Likely <grant.likely@linaro.org> | Mon Jul 22 19:40:38 2013 +0100 |
tree | a50fe3d27f2bcb9aa00e2c2b6e6c428e1c86618c | |
parent | cfd1ee3e37360ac6ec8c737e63e70c5d583f1e51 [diff] |
of/irq: Avoid calling list_first_entry() for empty list list_first_entry() expects the list is not empty, we need to check if list is empty before calling list_first_entry(). Thus use list_first_entry_or_null() instead of list_first_entry(). Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Grant Likely <grant.likely@linaro.org>