staging: dgap: make dgap_config_buf a local buffer
authorDaeseok Youn <daeseok.youn@gmail.com>
Mon, 2 Jun 2014 05:09:04 +0000 (14:09 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:21:47 +0000 (15:21 -0700)
The dgap_config_buf is only used in dgap_firmware_load().

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgap/dgap.c

index 3e716feea5f65d5ec7a0684f4405135570d9ebb9..c78c8e2b0882f0f6ef1d37c0654a15b6dd2a86c9 100644 (file)
@@ -211,7 +211,6 @@ static const struct file_operations dgap_board_fops = {
 static uint dgap_numboards;
 static struct board_t *dgap_board[MAXBOARDS];
 static ulong dgap_poll_counter;
-static char *dgap_config_buf;
 static int dgap_driver_state = DRIVER_INITIALIZED;
 static wait_queue_head_t dgap_dl_wait;
 static int dgap_poll_tick = 20;        /* Poll interval - 20 ms */
@@ -823,11 +822,12 @@ static int dgap_firmware_load(struct pci_dev *pdev, int card_type)
        const struct firmware *fw;
        char *tmp_ptr;
        int ret;
+       char *dgap_config_buf;
 
        dgap_get_vpd(brd);
        dgap_do_reset_board(brd);
 
-       if ((fw_info[card_type].conf_name) && !dgap_config_buf) {
+       if (fw_info[card_type].conf_name) {
                ret = request_firmware(&fw, fw_info[card_type].conf_name,
                                         &pdev->dev);
                if (ret) {
This page took 0.02914 seconds and 5 git commands to generate.