Skip to content

Commit

Permalink
sbp-target: rename a variable to avoid name clash
Browse files Browse the repository at this point in the history
'int login_id' shadows 'static atomic_t login_id'.
Seen as compilation warning on x86-32.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Acked-by: Chris Boot <bootc@bootc.net>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
  • Loading branch information
Stefan Richter authored and Nicholas Bellinger committed May 30, 2012
1 parent af56e0a commit 5f2a3d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/target/sbp/sbp_target.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,14 +587,14 @@ static void sbp_management_request_logout(
{
struct sbp_tport *tport = agent->tport;
struct sbp_tpg *tpg = tport->tpg;
int login_id;
int id;
struct sbp_login_descriptor *login;

login_id = LOGOUT_ORB_LOGIN_ID(be32_to_cpu(req->orb.misc));
id = LOGOUT_ORB_LOGIN_ID(be32_to_cpu(req->orb.misc));

login = sbp_login_find_by_id(tpg, login_id);
login = sbp_login_find_by_id(tpg, id);
if (!login) {
pr_warn("cannot find login: %d\n", login_id);
pr_warn("cannot find login: %d\n", id);

req->status.status = cpu_to_be32(
STATUS_BLOCK_RESP(STATUS_RESP_REQUEST_COMPLETE) |
Expand Down

0 comments on commit 5f2a3d6

Please sign in to comment.