diff options
author | twinaphex | 2014-12-10 16:40:43 +0100 |
---|---|---|
committer | twinaphex | 2014-12-10 16:40:43 +0100 |
commit | 512f7f5b275ec011ff0bf406771fcbeada1caf29 (patch) | |
tree | 3b996a9a7fa385351dba97c1e150b2394486e650 /arm | |
parent | 7a0b0cba45912646677539ad905ba4db83d6936b (diff) | |
download | picogpsp-512f7f5b275ec011ff0bf406771fcbeada1caf29.tar.gz picogpsp-512f7f5b275ec011ff0bf406771fcbeada1caf29.tar.bz2 picogpsp-512f7f5b275ec011ff0bf406771fcbeada1caf29.zip |
Code nits - get rid of '== NULL' / '!= NULL'
Diffstat (limited to 'arm')
-rw-r--r-- | arm/arm_stub.S | 2 | ||||
-rw-r--r-- | arm/warm.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arm/arm_stub.S b/arm/arm_stub.S index 1fc0db6..73c73fa 100644 --- a/arm/arm_stub.S +++ b/arm/arm_stub.S @@ -740,7 +740,7 @@ execute_ewram_ptr: @ u32 gamepak_index = address >> 15; @ u8 *map = memory_map_read[gamepak_index]; -@ if(map == NULL) +@ if(!map) @ map = load_gamepak_page(gamepak_index & 0x3FF); @ value = address##type(map, address & 0x7FFF) @@ -80,7 +80,7 @@ static int manual_insmod_26(const char *fname, const char *opts) FILE *f; f = fopen(fname, "rb"); - if (f == NULL) + if (!f) return -1; fseek(f, 0, SEEK_END); @@ -88,7 +88,7 @@ static int manual_insmod_26(const char *fname, const char *opts) fseek(f, 0, SEEK_SET); buff = malloc(len); - if (buff == NULL) + if (!buff) goto fail0; read_len = fread(buff, 1, len, f); |