src/joystick/bsd/SDL_sysjoystick.c
changeset 7719 31b5f9ff36ca
parent 7191 75360622e65f
child 7733 957d7137867c
     1.1 --- a/src/joystick/bsd/SDL_sysjoystick.c	Thu Aug 29 08:27:25 2013 -0700
     1.2 +++ b/src/joystick/bsd/SDL_sysjoystick.c	Thu Aug 29 08:29:21 2013 -0700
     1.3 @@ -577,10 +577,8 @@
     1.4      int i;
     1.5  
     1.6      for (i = 0; i < MAX_JOYS; i++) {
     1.7 -        if (joynames[i] != NULL)
     1.8 -            SDL_free(joynames[i]);
     1.9 -        if (joydevnames[i] != NULL)
    1.10 -            SDL_free(joydevnames[i]);
    1.11 +        SDL_free(joynames[i]);
    1.12 +        SDL_free(joydevnames[i]);
    1.13      }
    1.14  
    1.15      return;
    1.16 @@ -657,9 +655,7 @@
    1.17  static void
    1.18  report_free(struct report *r)
    1.19  {
    1.20 -    if (r->buf != NULL) {
    1.21 -        SDL_free(r->buf);
    1.22 -    }
    1.23 +    SDL_free(r->buf);
    1.24      r->status = SREPORT_UNINIT;
    1.25  }
    1.26