From: Joel Brobecker Date: Wed, 15 Jan 2014 12:40:22 +0000 (+0400) Subject: Fix small style violation in py-value.c:get_field_type X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bf7105a442e58c3444b096f30fd59c5c8acfd362;p=binutils-gdb.git Fix small style violation in py-value.c:get_field_type gdb/ChangeLog: * python/py-value.c (get_field_type): Remove unnecessary curly braces for single-statement if block. Tested on x86_64-linux. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5702257982b..e752dd085d4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-01-15 Joel Brobecker + + * python/py-value.c (get_field_type): Remove unnecessary curly + braces for single-statement if block. + 2014-01-15 Joel Brobecker * python/py-type.c (convert_field): Add missing empty line diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c index 65750a4aba4..67e6c4e8cce 100644 --- a/gdb/python/py-value.c +++ b/gdb/python/py-value.c @@ -577,11 +577,9 @@ get_field_type (PyObject *field) ftype = type_object_to_type (ftype_obj); Py_DECREF (ftype_obj); if (ftype == NULL) - { - PyErr_SetString (PyExc_TypeError, - _("'type' attribute of gdb.Field object is not a " - "gdb.Type object.")); - } + PyErr_SetString (PyExc_TypeError, + _("'type' attribute of gdb.Field object is not a " + "gdb.Type object.")); return ftype; }