summaryrefslogtreecommitdiff
path: root/arm
diff options
context:
space:
mode:
authortwinaphex2014-12-10 16:40:43 +0100
committertwinaphex2014-12-10 16:40:43 +0100
commit512f7f5b275ec011ff0bf406771fcbeada1caf29 (patch)
tree3b996a9a7fa385351dba97c1e150b2394486e650 /arm
parent7a0b0cba45912646677539ad905ba4db83d6936b (diff)
downloadpicogpsp-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.S2
-rw-r--r--arm/warm.c4
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)
diff --git a/arm/warm.c b/arm/warm.c
index 7cf22ac..e4eb711 100644
--- a/arm/warm.c
+++ b/arm/warm.c
@@ -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);