staging: unisys: fix CamelCase in ReqHandlerDel
Fix CamelCase names: ReqHandlerDel => req_handler_del switchTypeGuid => switch_uuid Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ea2cfd6531
commit
7692544dcf
2 changed files with 4 additions and 4 deletions
|
@ -75,7 +75,7 @@ struct req_handler_info *req_handler_add(uuid_le switch_uuid,
|
||||||
unsigned char *client_str,
|
unsigned char *client_str,
|
||||||
u32 client_str_len, u64 bytes));
|
u32 client_str_len, u64 bytes));
|
||||||
struct req_handler_info *req_handler_find(uuid_le switch_uuid);
|
struct req_handler_info *req_handler_find(uuid_le switch_uuid);
|
||||||
int ReqHandlerDel(uuid_le switchTypeGuid);
|
int req_handler_del(uuid_le switch_uuid);
|
||||||
|
|
||||||
#define uislib_ioremap_cache(addr, size) \
|
#define uislib_ioremap_cache(addr, size) \
|
||||||
dbg_ioremap_cache(addr, size, __FILE__, __LINE__)
|
dbg_ioremap_cache(addr, size, __FILE__, __LINE__)
|
||||||
|
|
|
@ -165,7 +165,7 @@ uisctrl_unregister_req_handler_ex(uuid_le switchTypeGuid)
|
||||||
int rc = 0; /* assume failure */
|
int rc = 0; /* assume failure */
|
||||||
|
|
||||||
LOGINF("type=%pUL.\n", &switchTypeGuid);
|
LOGINF("type=%pUL.\n", &switchTypeGuid);
|
||||||
if (ReqHandlerDel(switchTypeGuid) < 0) {
|
if (req_handler_del(switchTypeGuid) < 0) {
|
||||||
LOGERR("failed to remove %pUL from server list\n",
|
LOGERR("failed to remove %pUL from server list\n",
|
||||||
&switchTypeGuid);
|
&switchTypeGuid);
|
||||||
goto Away;
|
goto Away;
|
||||||
|
@ -326,7 +326,7 @@ req_handler_find(uuid_le switch_uuid)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
ReqHandlerDel(uuid_le switchTypeGuid)
|
req_handler_del(uuid_le switch_uuid)
|
||||||
{
|
{
|
||||||
struct list_head *lelt, *tmp;
|
struct list_head *lelt, *tmp;
|
||||||
struct req_handler_info *entry = NULL;
|
struct req_handler_info *entry = NULL;
|
||||||
|
@ -335,7 +335,7 @@ ReqHandlerDel(uuid_le switchTypeGuid)
|
||||||
spin_lock(&ReqHandlerInfo_list_lock);
|
spin_lock(&ReqHandlerInfo_list_lock);
|
||||||
list_for_each_safe(lelt, tmp, &ReqHandlerInfo_list) {
|
list_for_each_safe(lelt, tmp, &ReqHandlerInfo_list) {
|
||||||
entry = list_entry(lelt, struct req_handler_info, list_link);
|
entry = list_entry(lelt, struct req_handler_info, list_link);
|
||||||
if (uuid_le_cmp(entry->switch_uuid, switchTypeGuid) == 0) {
|
if (uuid_le_cmp(entry->switch_uuid, switch_uuid) == 0) {
|
||||||
list_del(lelt);
|
list_del(lelt);
|
||||||
kfree(entry);
|
kfree(entry);
|
||||||
rc++;
|
rc++;
|
||||||
|
|
Loading…
Add table
Reference in a new issue