remove IS_ERR_OR_NULL
In most places where pointer can be an 'error' it cannot be null pointer. Further, in those cases just calling PTR_ERR() is not enough to handle the null case. Simplify code by removing this case. If NULL case needs to be handled, it's better to add separate check and return fixed error code in that case.
Showing
- src/adb.c 2 additions, 2 deletionssrc/adb.c
- src/adb_comp.c 2 additions, 2 deletionssrc/adb_comp.c
- src/adb_walk_text.c 1 addition, 1 deletionsrc/adb_walk_text.c
- src/apk_defines.h 0 additions, 1 deletionsrc/apk_defines.h
- src/app_fetch.c 3 additions, 3 deletionssrc/app_fetch.c
- src/app_index.c 1 addition, 1 deletionsrc/app_index.c
- src/app_info.c 1 addition, 1 deletionsrc/app_info.c
- src/database.c 4 additions, 4 deletionssrc/database.c
- src/io.c 4 additions, 4 deletionssrc/io.c
- src/io_gunzip.c 2 additions, 2 deletionssrc/io_gunzip.c
- src/tar.c 1 addition, 1 deletionsrc/tar.c
Loading
Please register or sign in to comment