connection: remove redundant assignment
authorMarek Chalupa <mchqwerty@gmail.com>
Fri, 22 Apr 2016 15:46:00 +0000 (17:46 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Sat, 23 Apr 2016 03:38:20 +0000 (11:38 +0800)
commit85b80f5cf059e4e6dbcdea44679d14d5b91548cf
treeeac307f91d5231c25ac3800a21f3ae890244f6fc
parent70850643f37d1b74f47affd0174101bf1f7fd2a8
connection: remove redundant assignment

the code is something like:

  if (object == NULL && ...) {
      object = NULL;
      return;
  }

first, the object is already NULL, second, the assignment has no effect
since we return from the function right away

Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
src/connection.c