mirror of
https://github.com/FunKey-Project/gpsp_libretro.git
synced 2026-03-27 22:32:41 +01:00
Code nits - get rid of '== NULL' / '!= NULL'
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user