libsystem-sd: do not use obsolete gerror_to_errno()
libsystem-sd: do not use obsolete gerror_to_errno()

Remove gerror_to_error() and return gerror->code instead of return of
gerror_to_error().
And additionally, set gerror to null just before use.

walyong/libsystem,walyong/libsystem