diff options
author | Joel Brobecker <brobecker@adacore.com> | 2014-01-15 16:40:22 +0400 |
---|---|---|
committer | Joel Brobecker <brobecker@adacore.com> | 2014-01-15 16:42:16 +0400 |
commit | bf7105a442e58c3444b096f30fd59c5c8acfd362 (patch) | |
tree | 6d05dc98fd7cc11dd8bf815cc854150c8769a45d /gdb/python/py-value.c | |
parent | a8f35c2ec3264c1825412ecb1eac22192a972917 (diff) | |
download | gdb-bf7105a442e58c3444b096f30fd59c5c8acfd362.zip gdb-bf7105a442e58c3444b096f30fd59c5c8acfd362.tar.gz gdb-bf7105a442e58c3444b096f30fd59c5c8acfd362.tar.bz2 |
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.
Diffstat (limited to 'gdb/python/py-value.c')
-rw-r--r-- | gdb/python/py-value.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c index 65750a4..67e6c4e 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; } |