Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c68744fb authored by Wey-Yi Guy's avatar Wey-Yi Guy
Browse files

iwlagn: Remove un-necessary indirect call



After driver split, no need to make indirect call to txfifo flush function

Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
parent a8e82749
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -194,8 +194,6 @@ static struct iwl_lib_ops iwl1000_lib = {
	.temp_ops = {
		.temperature = iwlagn_temperature,
	 },
	.txfifo_flush = iwlagn_txfifo_flush,
	.dev_txfifo_flush = iwlagn_dev_txfifo_flush,
};

static const struct iwl_ops iwl1000_ops = {
+0 −2
Original line number Diff line number Diff line
@@ -204,8 +204,6 @@ static struct iwl_lib_ops iwl2000_lib = {
	.temp_ops = {
		.temperature = iwlagn_temperature,
	},
	.txfifo_flush = iwlagn_txfifo_flush,
	.dev_txfifo_flush = iwlagn_dev_txfifo_flush,
};

static const struct iwl_ops iwl2000_ops = {
+0 −4
Original line number Diff line number Diff line
@@ -361,8 +361,6 @@ static struct iwl_lib_ops iwl5000_lib = {
	.temp_ops = {
		.temperature = iwlagn_temperature,
	 },
	.txfifo_flush = iwlagn_txfifo_flush,
	.dev_txfifo_flush = iwlagn_dev_txfifo_flush,
};

static struct iwl_lib_ops iwl5150_lib = {
@@ -391,8 +389,6 @@ static struct iwl_lib_ops iwl5150_lib = {
	.temp_ops = {
		.temperature = iwl5150_temperature,
	 },
	.txfifo_flush = iwlagn_txfifo_flush,
	.dev_txfifo_flush = iwlagn_dev_txfifo_flush,
};

static const struct iwl_ops iwl5000_ops = {
+0 −4
Original line number Diff line number Diff line
@@ -301,8 +301,6 @@ static struct iwl_lib_ops iwl6000_lib = {
	.temp_ops = {
		.temperature = iwlagn_temperature,
	 },
	.txfifo_flush = iwlagn_txfifo_flush,
	.dev_txfifo_flush = iwlagn_dev_txfifo_flush,
};

static struct iwl_lib_ops iwl6030_lib = {
@@ -333,8 +331,6 @@ static struct iwl_lib_ops iwl6030_lib = {
	.temp_ops = {
		.temperature = iwlagn_temperature,
	 },
	.txfifo_flush = iwlagn_txfifo_flush,
	.dev_txfifo_flush = iwlagn_dev_txfifo_flush,
};

static struct iwl_nic_ops iwl6050_nic_ops = {
+1 −1
Original line number Diff line number Diff line
@@ -1546,7 +1546,7 @@ void iwlagn_dev_txfifo_flush(struct iwl_priv *priv, u16 flush_control)
{
	mutex_lock(&priv->mutex);
	ieee80211_stop_queues(priv->hw);
	if (priv->cfg->ops->lib->txfifo_flush(priv, IWL_DROP_ALL)) {
	if (iwlagn_txfifo_flush(priv, IWL_DROP_ALL)) {
		IWL_ERR(priv, "flush request fail\n");
		goto done;
	}
Loading