Skip to content

Commit

Permalink
Removed Redundant assignement of name inside configure_joypad function
Browse files Browse the repository at this point in the history
(cherry picked from commit 1add8b3)
  • Loading branch information
VitikaSoni authored and akien-mga committed Jul 27, 2021
1 parent eb31a39 commit 843c2a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platform/osx/joypad_osx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,9 @@ bool JoypadOSX::configure_joypad(IOHIDDeviceRef p_device_ref, joypad *p_joy) {
}
if ((!refCF) || (!CFStringGetCString((CFStringRef)refCF, c_name, sizeof(c_name), kCFStringEncodingUTF8))) {
name = "Unidentified Joypad";
} else {
name = c_name;
}
name = c_name;

int id = input->get_unused_joy_id();
ERR_FAIL_COND_V(id == -1, false);
Expand Down

0 comments on commit 843c2a3

Please sign in to comment.