diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2011-01-20 10:55:31 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-01-20 10:55:31 +0100 |
commit | 5d524cac733a254f44ba39d70175fa6207f10869 (patch) | |
tree | 414e4bb3b5189d8395c32d891fb5f43488c6f187 /gatchat/gatutil.c | |
parent | fa222d810a865c1a8eee4a8c45db01c2fe422d88 (diff) | |
download | ofono-5d524cac733a254f44ba39d70175fa6207f10869.tar.bz2 |
gatchat: Small cleanup to make function look simpler
Diffstat (limited to 'gatchat/gatutil.c')
-rw-r--r-- | gatchat/gatutil.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gatchat/gatutil.c b/gatchat/gatutil.c index 0ac20b5a..6a7e177f 100644 --- a/gatchat/gatutil.c +++ b/gatchat/gatutil.c @@ -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; } |