gatchat: Small cleanup to make function look simpler

This commit is contained in:
Marcel Holtmann 2011-01-20 10:55:31 +01:00
parent fa222d810a
commit 5d524cac73
1 changed files with 2 additions and 3 deletions

View File

@ -136,8 +136,7 @@ gboolean g_at_util_setup_io(GIOChannel *io, GIOFlags flags)
{
GIOFlags io_flags;
if (g_io_channel_set_encoding(io, NULL, NULL) !=
G_IO_STATUS_NORMAL)
if (g_io_channel_set_encoding(io, NULL, NULL) != G_IO_STATUS_NORMAL)
return FALSE;
g_io_channel_set_buffered(io, FALSE);
@ -148,7 +147,7 @@ gboolean g_at_util_setup_io(GIOChannel *io, GIOFlags flags)
io_flags |= (flags & G_IO_FLAG_SET_MASK);
if (g_io_channel_set_flags(io, io_flags, NULL) !=
G_IO_STATUS_NORMAL)
G_IO_STATUS_NORMAL)
return FALSE;
}