)]}'
{"src/flash/nor/xcf.c":[{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"6b4dc3081f24b49a34c647e17faa5a82e8b85bb3","unresolved":false,"context_lines":[{"line_number":629,"context_line":"\t}"},{"line_number":630,"context_line":""},{"line_number":631,"context_line":"\tbank-\u003esectors \u003d malloc(bank-\u003enum_sectors * sizeof(struct flash_sector));"},{"line_number":632,"context_line":"\tif (bank-\u003esectors \u003d\u003d NULL) {"},{"line_number":633,"context_line":"\t\tLOG_ERROR(\"No memory for sector table\");"},{"line_number":634,"context_line":"\t\treturn ERROR_FAIL;"},{"line_number":635,"context_line":"\t}"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"aedf27f1_98f7b956","line":632,"updated":"2021-05-01 20:58:50.000000000","message":"Just for chatting ...\nThe checkpatch I\u0027m proposing in\n http://openocd.zylin.com/#/q/topic:checkpatch\nprefers removing the comparison with NULL pointer and would suggest in this case\n if (!bank-\u003esectors) {\nOur coding style doesn\u0027t mention this, but would be good to uniform the style and I\u0027m personally used at Linux way.\nWe can either silent checkpatch with \"--ignore COMPARISON_TO_NULL\" or using checkpatch to help uniforming the style.\nAnyway, not required to change this patch now, but fixing twice the same line is boring!","commit_id":"0604f92708ad471590db46d0156953eec0a9672b"}]}
