]> git.karo-electronics.de Git - linux-beck.git/commitdiff
be2net: remove space after typecasts
authorKalesh AP <kalesh.purayil@emulex.com>
Fri, 19 Sep 2014 10:17:00 +0000 (15:47 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Sep 2014 19:01:09 +0000 (15:01 -0400)
This patch removes unnecessary spaces after typecasts as per checkpatch warnings.
Signed-off-by: Kalesh AP <kalesh.purayil@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_main.c

index 9ec09a8e7b00b2c5a689f5c97badb36034a035c8..48f4be3d14b9f02fce2cb1e13b72f895f3f021af 100644 (file)
@@ -316,7 +316,7 @@ static void be_async_dbg_evt_process(struct be_adapter *adapter,
                                     struct be_mcc_compl *cmp)
 {
        u8 event_type = 0;
-       struct be_async_event_qnq *evt = (struct be_async_event_qnq *) cmp;
+       struct be_async_event_qnq *evt = (struct be_async_event_qnq *)cmp;
 
        event_type = (cmp->flags >> ASYNC_EVENT_TYPE_SHIFT) &
                        ASYNC_EVENT_TYPE_MASK;
@@ -956,7 +956,7 @@ int be_cmd_mac_addr_query(struct be_adapter *adapter, u8 *mac_addr,
        if (permanent) {
                req->permanent = 1;
        } else {
-               req->if_id = cpu_to_le16((u16) if_handle);
+               req->if_id = cpu_to_le16((u16)if_handle);
                req->pmac_id = cpu_to_le32(pmac_id);
                req->permanent = 0;
        }
@@ -3280,7 +3280,7 @@ int be_cmd_get_acpi_wol_cap(struct be_adapter *adapter)
        if (!status) {
                struct be_cmd_resp_acpi_wol_magic_config_v1 *resp;
 
-               resp = (struct be_cmd_resp_acpi_wol_magic_config_v1 *) cmd.va;
+               resp = (struct be_cmd_resp_acpi_wol_magic_config_v1 *)cmd.va;
 
                adapter->wol_cap = resp->wol_settings;
                if (adapter->wol_cap & BE_WOL_CAP)
@@ -4127,7 +4127,7 @@ int be_roce_mcc_cmd(void *netdev_handle, void *wrb_payload,
 {
        struct be_adapter *adapter = netdev_priv(netdev_handle);
        struct be_mcc_wrb *wrb;
-       struct be_cmd_req_hdr *hdr = (struct be_cmd_req_hdr *) wrb_payload;
+       struct be_cmd_req_hdr *hdr = (struct be_cmd_req_hdr *)wrb_payload;
        struct be_cmd_req_hdr *req;
        struct be_cmd_resp_hdr *resp;
        int status;
index 7e80527fc10dffab82da9a3145138cb3915c2d86..0bed42bd1833f7422a5c823d70dec605e054b6da 100644 (file)
@@ -918,7 +918,7 @@ static bool be_ipv6_exthdr_check(struct sk_buff *skb)
                if (ip6h->nexthdr != NEXTHDR_TCP &&
                    ip6h->nexthdr != NEXTHDR_UDP) {
                        struct ipv6_opt_hdr *ehdr =
-                               (struct ipv6_opt_hdr *) (skb->data + offset);
+                               (struct ipv6_opt_hdr *)(skb->data + offset);
 
                        /* offending pkt: 2nd byte following IPv6 hdr is 0xff */
                        if (ehdr->hdrlen == 0xff)