davidker / unisys

Master repository for new changes to drivers/staging/unisys and drivers/visorbus
Other
2 stars 1 forks source link

visornic: visornic_init(): switch error-handling and success-handling[upstream] #47

Closed selltc closed 8 years ago

selltc commented 8 years ago
2126          err = visorbus_register_visor_driver(&visornic_driver);
2127          if (!err)
2128                  return 0;

Source: Dan Carpenter dan.carpenter@oracle.com Mon 5/2/2016 5:53 AM

Flip this around.

if (err)
    goto cleanup_debugfs;

  return 0;

See KanBoard-1005

ghost commented 8 years ago

branch: visornic_switch_handling, commit 51f6a1e checkpatch-cleared: yes T710-1 verified: yes

selltc commented 8 years ago
Reviewed-by: Tim Sell <Timothy.Sell@unisys.com>
selltc commented 8 years ago

6/8 - Greg committed this to staging-testing and staging-next: