Code nits - get rid of '== NULL' / '!= NULL'

This commit is contained in:
twinaphex
2014-12-10 16:40:43 +01:00
parent 7a0b0cba45
commit 512f7f5b27
4 changed files with 11 additions and 11 deletions

View File

@@ -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)

View File

@@ -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);