Skip to content

Commit

Permalink
isci: remove scic_sds_port_increment_request_count
Browse files Browse the repository at this point in the history
Removes excessive encapsulation function.

Signed-off-by: Edmund Nadolski <edmund.nadolski@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
  • Loading branch information
Edmund Nadolski authored and Dan Williams committed Jul 3, 2011
1 parent ed30c27 commit b9988b8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
3 changes: 1 addition & 2 deletions drivers/scsi/isci/core/scic_sds_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -1232,8 +1232,7 @@ static enum sci_status scic_sds_port_ready_operational_substate_start_io_handler
struct scic_sds_remote_device *device,
struct scic_sds_request *io_request)
{
scic_sds_port_increment_request_count(port);

port->started_request_count++;
return SCI_SUCCESS;
}

Expand Down
5 changes: 0 additions & 5 deletions drivers/scsi/isci/core/scic_sds_port.h
Original file line number Diff line number Diff line change
Expand Up @@ -359,11 +359,6 @@ struct scic_sds_port_state_handler {
((this_port)->physical_port_index)


static inline void scic_sds_port_increment_request_count(struct scic_sds_port *sci_port)
{
sci_port->started_request_count++;
}

static inline void scic_sds_port_decrement_request_count(struct scic_sds_port *sci_port)
{
if (WARN_ONCE(sci_port->started_request_count == 0,
Expand Down

0 comments on commit b9988b8

Please sign in to comment.