~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to net/rxrpc/ar-error.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
139
139
        struct rxrpc_transport *trans =
140
140
                container_of(work, struct rxrpc_transport, error_handler);
141
141
        struct sk_buff *skb;
142
 
        int local, err;
 
142
        int err;
143
143
 
144
144
        _enter("");
145
145
 
157
157
 
158
158
        switch (ee->ee_origin) {
159
159
        case SO_EE_ORIGIN_ICMP:
160
 
                local = 0;
161
160
                switch (ee->ee_type) {
162
161
                case ICMP_DEST_UNREACH:
163
162
                        switch (ee->ee_code) {
207
206
        case SO_EE_ORIGIN_LOCAL:
208
207
                _proto("Rx Received local error { error=%d }",
209
208
                       ee->ee_errno);
210
 
                local = 1;
211
209
                break;
212
210
 
213
211
        case SO_EE_ORIGIN_NONE:
215
213
        default:
216
214
                _proto("Rx Received error report { orig=%u }",
217
215
                       ee->ee_origin);
218
 
                local = 0;
219
216
                break;
220
217
        }
221
218