Commit b3a050e1 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

files: Use BUG() instead of BUG_ON(1)

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent b6b9bb0c
...@@ -71,7 +71,7 @@ struct fdinfo_list_entry *file_master(struct file_desc *d) ...@@ -71,7 +71,7 @@ struct fdinfo_list_entry *file_master(struct file_desc *d)
{ {
if (list_empty(&d->fd_info_head)) { if (list_empty(&d->fd_info_head)) {
pr_err("Empty list on file desc id %#x\n", d->id); pr_err("Empty list on file desc id %#x\n", d->id);
BUG_ON(1); BUG();
} }
return list_first_entry(&d->fd_info_head, return list_first_entry(&d->fd_info_head,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment